mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Add wallpaper change logging
This commit is contained in:
parent
68460612e3
commit
b5208d08b0
1 changed files with 5 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
#include <iostream>
|
||||
|
||||
#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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue