wow
This commit is contained in:
parent
c4fdc3ecda
commit
c0306a0042
|
|
@ -4,10 +4,9 @@
|
||||||
void SunshineBindingInit(){
|
void SunshineBindingInit(){
|
||||||
printf("[SunshineBindingInit] Initializing Sunshine binding\n");
|
printf("[SunshineBindingInit] Initializing Sunshine binding\n");
|
||||||
VALUE module = rb_define_module("Sunshine");
|
VALUE module = rb_define_module("Sunshine");
|
||||||
rb_define_const(module, "SDLVersion_major", INT2NUM(SDL_MAJOR_VERSION));
|
rb_const_set(module, rb_intern("SDLVersion_major"), INT2NUM(SDL_MAJOR_VERSION));
|
||||||
rb_define_const(module, "SDLVersion_minor", INT2NUM(SDL_MINOR_VERSION));
|
rb_const_set(module, rb_intern("SDLVersion_minor"), INT2NUM(SDL_MINOR_VERSION));
|
||||||
rb_define_const(module, "SDLVersion_micro", INT2NUM(SDL_MICRO_VERSION));
|
rb_const_set(module, rb_intern("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] SDL version: %i.%i.%i\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION);
|
||||||
printf("[SunshineBindingInit] Done\n");
|
printf("[SunshineBindingInit] Done\n");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
begin
|
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
|
end
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ Oneshot::Oneshot(RGSSThreadData &threadData) :
|
||||||
#elif defined OS_OSX
|
#elif defined OS_OSX
|
||||||
p->os = "macos";
|
p->os = "macos";
|
||||||
#elif defined BSD
|
#elif defined BSD
|
||||||
p->os = "BSD ";
|
p->os = "BSD";
|
||||||
#else
|
#else
|
||||||
p->os = "linux";
|
p->os = "linux";
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue