From b5208d08b0bc2574ce279b66007a578ae240587b Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Tue, 24 Apr 2018 04:40:29 -0700 Subject: [PATCH] Add wallpaper change logging --- binding-mri/wallpaper-binding.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/binding-mri/wallpaper-binding.cpp b/binding-mri/wallpaper-binding.cpp index 4abc04e..2b4013f 100644 --- a/binding-mri/wallpaper-binding.cpp +++ b/binding-mri/wallpaper-binding.cpp @@ -1,3 +1,5 @@ +#include + #include "etc.h" #include "sharedstate.h" #include "binding-util.h" @@ -39,6 +41,7 @@ RB_METHOD(wallpaperSet) std::string imageName = iname; std::string imgname = shState->config().gameFolder + "/Wallpaper/" + imageName + ".bmp"; #ifdef _WIN32 + std::cout << "Setting wallpaper to " << imgname << std::endl; // Crapify the slashes size_t index = 0; for (;;) { @@ -110,6 +113,8 @@ end: if (found != std::string::npos) imageName.replace(imageName.end()-3, imageName.end(), "unix"); imgname = shState->config().gameFolder + "/Wallpaper/" + imageName + ".png"; + std::cout << "Setting wallpaper to " << imgname << std::endl; + #ifdef __APPLE__ if (!isCached) { MacDesktop::CacheCurrentBackground();