diff --git a/Graphics/desktop.png b/Graphics/desktop.png new file mode 100644 index 0000000..f83e101 Binary files /dev/null and b/Graphics/desktop.png differ diff --git a/Graphics/es/save_unix.png b/Graphics/es/save_unix.png new file mode 100644 index 0000000..3ee9f87 Binary files /dev/null and b/Graphics/es/save_unix.png differ diff --git a/Graphics/fr/save_unix.png b/Graphics/fr/save_unix.png new file mode 100644 index 0000000..bb36298 Binary files /dev/null and b/Graphics/fr/save_unix.png differ diff --git a/Graphics/ja/save_unix.png b/Graphics/ja/save_unix.png new file mode 100644 index 0000000..c2a3323 Binary files /dev/null and b/Graphics/ja/save_unix.png differ diff --git a/Graphics/pt_BR/save_unix.png b/Graphics/pt_BR/save_unix.png new file mode 100644 index 0000000..bab6202 Binary files /dev/null and b/Graphics/pt_BR/save_unix.png differ diff --git a/Graphics/save_unix.png b/Graphics/save_unix.png new file mode 100644 index 0000000..fd3e8ae Binary files /dev/null and b/Graphics/save_unix.png differ diff --git a/binding-mri/wallpaper-binding.cpp b/binding-mri/wallpaper-binding.cpp index 8f85305..ea6490a 100644 --- a/binding-mri/wallpaper-binding.cpp +++ b/binding-mri/wallpaper-binding.cpp @@ -99,13 +99,16 @@ end: if (hKey) RegCloseKey(hKey); #else + std::size_t found = imgname.find("w32"); + if (found != std::string::npos) imgname.replace(imgname.end()-3, imgname.end(), "unix"); + imgname = shState->config().gameFolder + "/Wallpaper/" + imageName + ".png"; + #ifdef __APPLE__ - if (!isCached) { - MacDesktop::CacheCurrentBackground(); - isCached = true; - } - // imgname = shState->config().gameFolder + "/Wallpaper/" + imageName + "2x.bmp"; - MacDesktop::ChangeBackground(imgname, ((color >> 16) & 0xFF) / 255.0, ((color >> 8) & 0xFF) / 255.0, ((color) & 0xFF) / 255.0); + if (!isCached) { + MacDesktop::CacheCurrentBackground(); + isCached = true; + } + MacDesktop::ChangeBackground(imgname, ((color >> 16) & 0xFF) / 255.0, ((color >> 8) & 0xFF) / 255.0, ((color) & 0xFF) / 255.0); #else // XXX Implement me! #endif diff --git a/install.command b/install.command index 573d113..e5cef3f 100755 --- a/install.command +++ b/install.command @@ -23,6 +23,7 @@ echo "-> ${cyan}Install OneShot apps to Steam directory...${color_reset}" cp -f "./xScripts.rxdata" "$ONESHOT_PATH/Data/xScripts.rxdata" cp -rf "./OneShot.app" "$ONESHOT_PATH" cp -rf "./_______.app" "$ONESHOT_PATH" +cp -R "./Graphics/" "$ONESHOT_PATH/Wallpapers" ln -sfh "$ONESHOT_PATH/OneShot.app" "$HOME/Applications/OneShot.app" echo "\n${green}Complete! ${white}Please report any issues to https://github.com/vinyldarkscratch/synglechance/issues${color_reset}"