mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +00:00
wow
This commit is contained in:
parent
c4fdc3ecda
commit
c0306a0042
3 changed files with 5 additions and 6 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue