From 65b26c85e3ec93be97c5009877d8511f6ed3a31e Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Fri, 1 May 2026 07:04:51 -0400 Subject: [PATCH] Fixed SunshineBinding amammama --- binding-mri/sunshine-binding.cpp | 9 +++++---- binding-mri/wallpaper-binding.cpp | 12 ++++++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/binding-mri/sunshine-binding.cpp b/binding-mri/sunshine-binding.cpp index 81c5fa3..87bc6c9 100644 --- a/binding-mri/sunshine-binding.cpp +++ b/binding-mri/sunshine-binding.cpp @@ -4,9 +4,10 @@ void SunshineBindingInit(){ printf("[SunshineBindingInit] Initializing Sunshine binding\n"); VALUE module = rb_define_module("Sunshine"); - - rb_define_const(module, "SDLVersion", INT2NUM(SDL_VERSION)); - - printf("[SunshineBindingInit] SDL version: %u\n", SDL_VERSION); + rb_define_const(module, "SDLVersion_major", INT2NUM(SDL_MAJOR_VERSION)); + rb_define_const(module, "SDLVersion_minor", INT2NUM(SDL_MINOR_VERSION)); + rb_define_const(module, "SDLVersion_micro", INT2NUM(SDL_MICRO_VERSION)); + //SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION + printf("[SunshineBindingInit] SDL version: %i.%i.%i\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION); printf("[SunshineBindingInit] Done\n"); } diff --git a/binding-mri/wallpaper-binding.cpp b/binding-mri/wallpaper-binding.cpp index b3b6c1a..78ca5a4 100644 --- a/binding-mri/wallpaper-binding.cpp +++ b/binding-mri/wallpaper-binding.cpp @@ -158,7 +158,7 @@ } configFile.close(); } else { - Debug() << "[desktopEnvironmentInit]FATAL: Cannot find desktop configuration!"; + Debug() << "[desktopEnvironmentInit] FATAL: Cannot find desktop configuration!"; desktop = "kde_error"; } } else { @@ -250,7 +250,7 @@ end: } path = "/Wallpaper/" + nameFix + ".png"; - Debug() << "[wallpaperSet]Setting wallpaper to " << path; + Debug() << "[wallpaperSet] Setting wallpaper to " << path; #ifdef __APPLE__ if (!isCached) { @@ -348,7 +348,7 @@ end: "'"; Debug() << "[wallpaperSet] Wallpaper command:" << command.str(); int result = system(command.str().c_str()); - Debug() << "[wallpaperSet ]Result:" << result; + Debug() << "[wallpaperSet ] Result:" << result; } else { std::ifstream srcHint(gameDirStr + path); std::ofstream dstHint(fallbackPath); @@ -470,12 +470,12 @@ RB_METHOD(wallpaperReset){ "}" << "}" << "'"; - Debug() << "[wallpaperReset]Reset wallpaper command:" << command.str(); + Debug() << "[wallpaperReset] Reset wallpaper command:" << command.str(); int result = system(command.str().c_str()); - Debug() << "[wallpaperReset]Reset result:" << result; + Debug() << "[wallpaperReset] Reset result:" << result; } else { if (remove(fallbackPath.c_str()) != 0) { - Debug() << "[wallpaperReset]Failed to delete:" << fallbackPath; + Debug() << "[wallpaperReset] Failed to delete:" << fallbackPath; } } #endif