This commit is contained in:
ZakatTeamI2P 2026-05-03 16:39:50 +04:00
parent c4fdc3ecda
commit c0306a0042
3 changed files with 5 additions and 6 deletions

View file

@ -4,10 +4,9 @@
void SunshineBindingInit(){
printf("[SunshineBindingInit] Initializing Sunshine binding\n");
VALUE module = rb_define_module("Sunshine");
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
rb_const_set(module, rb_intern("SDLVersion_major"), INT2NUM(SDL_MAJOR_VERSION));
rb_const_set(module, rb_intern("SDLVersion_minor"), INT2NUM(SDL_MINOR_VERSION));
rb_const_set(module, rb_intern("SDLVersion_micro"), INT2NUM(SDL_MICRO_VERSION));
printf("[SunshineBindingInit] SDL version: %i.%i.%i\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION);
printf("[SunshineBindingInit] Done\n");
}

View file

@ -1,3 +1,3 @@
begin
print("YOOOO THIS WORK!")
print("Oneshot: sunshine TEST xScripts.rxdata\nRuby version: #{RUBY_VERSION}\nSDL version: #{Sunshine::SDLVersion_major}.#{Sunshine::SDLVersion_minor}.#{Sunshine::SDLVersion_micro}")
end

View file

@ -179,7 +179,7 @@ Oneshot::Oneshot(RGSSThreadData &threadData) :
#elif defined OS_OSX
p->os = "macos";
#elif defined BSD
p->os = "BSD ";
p->os = "BSD";
#else
p->os = "linux";
#endif