From e5714fbb752e8132806a0d39f240423bff97af64 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Tue, 12 May 2026 10:51:29 +0400 Subject: [PATCH] meow --- binding-mri/binding-mri.cpp | 3 --- binding-mri/filesystem-binding.cpp | 8 +------- src/al-util.h | 3 +-- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/binding-mri/binding-mri.cpp b/binding-mri/binding-mri.cpp index 5f34e00..34d934b 100644 --- a/binding-mri/binding-mri.cpp +++ b/binding-mri/binding-mri.cpp @@ -235,7 +235,6 @@ RB_METHOD(mkxpMouseInWindow){ } static VALUE rgssMainCb(VALUE block){ - printf("[rgssMainCb] ...my home is calling, my keep going, no more stolling...\n"); rb_funcall2(block, rb_intern("call"), 0, 0); return Qnil; } @@ -438,7 +437,6 @@ static void runRMXPScripts(BacktraceData &btData){ if (result != Z_OK){ static char buffer[256]; snprintf(buffer, sizeof(buffer), "Error decoding script %ld: '%s'\n", i, RSTRING_PTR(scriptName)); - //printf("[runRMXPScripts] Script Name: %s\n", buffer); showMsg(buffer); break; @@ -546,7 +544,6 @@ static void showExc(VALUE exc, const BacktraceData &btData){ } static void mriBindingExecute(){ - printf("[mirBindingExecute] Setting up ruby\n"); /* Normally only a ruby executable would do a sysinit, * but not doing it will lead to crashes due to closed * stdio streams on some platforms (eg. Windows) */ diff --git a/binding-mri/filesystem-binding.cpp b/binding-mri/filesystem-binding.cpp index 194cf3e..19fe609 100644 --- a/binding-mri/filesystem-binding.cpp +++ b/binding-mri/filesystem-binding.cpp @@ -56,7 +56,6 @@ VALUE fileIntForPath(const char *path, bool rubyExc){ RB_METHOD(fileIntRead){ int length = -1; rb_get_args(argc, argv, "i", &length); - printf("[fileIntRead] length: %i\n", length); SDL_IOStream *ops = getPrivateData(self); if (length == -1){ Sint64 cur = SDL_TellIO(ops); @@ -71,7 +70,6 @@ RB_METHOD(fileIntRead){ } VALUE data = rb_str_new(0, length); - printf("[fileIntRead] length: %d\n", length); SDL_ReadIO(ops, RSTRING_PTR(data), length); @@ -95,7 +93,6 @@ RB_NA_METHOD(fileIntGetByte){ SDL_IOStream *ops = getPrivateData(self); unsigned char byte = 0; size_t result = SDL_ReadIO(ops, &byte, 1); - printf("[fileIntGetByte] Reading %u\n", byte); return (result == 1) ? INT2NUM(byte) : Qnil; } @@ -104,7 +101,6 @@ RB_NA_METHOD(fileIntBinmode){ } VALUE load_protect(VALUE marsh_and_port) { - printf("[Load_protect] Protecting!\n"); VALUE *arr = (VALUE *)marsh_and_port; VALUE marsh = arr[0]; VALUE port = arr[1]; @@ -120,9 +116,7 @@ VALUE kernelLoadDataInt(const char *filename, bool rubyExc){ int state = 0; VALUE result = rb_protect(load_protect, (VALUE)args, &state); printf("[kernelLoadDataInt] State %d\n", state); - if(RTEST(result) == false){ - printf("[kernelLoadDataInt] Result = false, bRuH\n"); - } + rb_funcallv(port, rb_intern("close"), 0, NULL); diff --git a/src/al-util.h b/src/al-util.h index 0af49d5..037ae57 100644 --- a/src/al-util.h +++ b/src/al-util.h @@ -27,8 +27,7 @@ #include #include -namespace AL -{ +namespace AL{ #define DEF_AL_ID \ struct ID \