diff --git a/binding-mri/sunshine-binding.cpp b/binding-mri/sunshine-binding.cpp index 87bc6c9..5049071 100644 --- a/binding-mri/sunshine-binding.cpp +++ b/binding-mri/sunshine-binding.cpp @@ -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"); } diff --git a/scripts-test/Main.rb b/scripts-test/Main.rb index 77a3088..c1089db 100644 --- a/scripts-test/Main.rb +++ b/scripts-test/Main.rb @@ -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 diff --git a/src/oneshot.cpp b/src/oneshot.cpp index 73b8bff..e2481a5 100644 --- a/src/oneshot.cpp +++ b/src/oneshot.cpp @@ -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