From 3da029ef45509599290a7e7215e4acfe2eda8d30 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Mon, 10 Aug 2026 22:54:20 +0400 Subject: [PATCH] faf --- binding-mri/binding-mri.cpp | 4 ---- src/eventthread.cpp | 2 +- src/meow.cpp | 31 +++++++++++++++++++++++-------- src/security.cpp | 1 - 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/binding-mri/binding-mri.cpp b/binding-mri/binding-mri.cpp index f1035b3..02cad53 100644 --- a/binding-mri/binding-mri.cpp +++ b/binding-mri/binding-mri.cpp @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -121,8 +120,6 @@ VALUE rb_symbol_to_s(VALUE self){ } static void mriBindingInit(){ - printf("[mriBindingInit] Loading bindings...\n"); - rb_define_method(rb_cSymbol, "to_s", RUBY_METHOD_FUNC(rb_symbol_to_s), 0); rb_define_method(rb_cSymbol, "name", RUBY_METHOD_FUNC(rb_symbol_to_s), 0); rb_define_method(rb_cSymbol, "id2name", RUBY_METHOD_FUNC(rb_symbol_to_s), 0); @@ -220,7 +217,6 @@ RB_METHOD(mkxpPuts){ const char *str; rb_get_args(argc, argv, "z", &str RB_ARG_END); Debug() << str; - return Qnil; } diff --git a/src/eventthread.cpp b/src/eventthread.cpp index e21bec5..f9a48b7 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -110,7 +110,7 @@ void EventThread::process(RGSSThreadData &rtData){ SDL_Event event; SDL_Window *win = rtData.window; UnidirMessage &windowSizeMsg = rtData.windowSizeMsg; - + initALCFunctions(rtData.alcDev); // XXX this function breaks input focus on OSX diff --git a/src/meow.cpp b/src/meow.cpp index c70b5ae..5147572 100644 --- a/src/meow.cpp +++ b/src/meow.cpp @@ -3,11 +3,12 @@ #include #include #include +#include +#include #include #include #include #include -#include #include "meow.h" #include "eventthread.h" #include "exception.h" @@ -22,10 +23,6 @@ #include #include #include -#include -#include -#include -#include #undef vsnprintf #undef snprintf #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__) @@ -157,11 +154,22 @@ void crash_screen(SDL_Window* win){ o << "REASON: " << msg << endl; o << "[BOOST stacktrace()]" << endl << endl; o << boost::stacktrace::stacktrace() << endl; + o << "[LOG BUFFER]" << endl << endl; for (const auto& s : logs) { o << s << endl; } - o << endl << "[VERSIONS OF LIBS]" << endl; + + o << endl; + o << "[AUDIO]" << endl; + o << "Driver used: " << SDL_GetCurrentAudioDriver() << endl; + + o << endl; + o << "[VIDEO]" << endl; + o << "Driver used: " << SDL_GetCurrentVideoDriver() << endl; + + o << endl; + o << "[VERSIONS OF LIBS]" << endl; const static int sdlcompiled = SDL_VERSION; const static int sdllinked = SDL_GetVersion(); o << "SDL(compiled) version: " << SDL_VERSIONNUM_MAJOR(sdlcompiled) << "." << SDL_VERSIONNUM_MINOR(sdlcompiled) << "." << SDL_VERSIONNUM_MICRO(sdlcompiled) << endl; @@ -174,12 +182,15 @@ void crash_screen(SDL_Window* win){ o << "OpenAL version: " << AL_VERSION << endl; o << "Boost versino: " << BOOST_VERSION / 100000 << "." << BOOST_VERSION / 100 % 1000 << "." << BOOST_VERSION % 100 << endl; o << "Pixman version: " << PIXMAN_VERSION_STRING << endl; + + o << endl; o << "[Platform specific]" << endl; try{ o << "Detected OS: " << SDL_GetPlatform() << endl; }catch(const std::exception& e){ o << "Detected OS: " << e.what() << endl; } + o << "System page size: " << SDL_GetSystemPageSize() << endl; #ifdef unix_like if(SDL_getenv("XDG_CURRENT_DESKTOP") != nullptr){ o << "Desktop enviroment(XDG_CURRENT_DESKTOP): " << SDL_getenv("XDG_CURRENT_DESKTOP") << endl; @@ -206,11 +217,14 @@ void crash_screen(SDL_Window* win){ #elif psp o << "PSPdev MIPS Stack Trace: " << pspDebugGetStackTrace() << endl; #endif + + o << endl; o << "[Hardware]" << endl; o << "number of logical CPU cores: " << SDL_GetNumLogicalCPUCores() << endl; o << "System RAM size: " << SDL_GetSystemRAM() << " MiB" << endl; - o << "[Ruby]" << endl; - o << "Is GC was busy? " << rb_during_gc() << endl; + o << "L1 cache size: " << SDL_GetCPUCacheLineSize() << endl; + + o << endl; o << "[OpenGL]" << endl; try{ o << "GL Vendor: " << glGetStringInt(GL_VENDOR) << endl; @@ -297,3 +311,4 @@ void WarnMsg(const char *fmt, ...) { Debug() << "[WARNMSG]" << buf; SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, "Warning", buf, NULL); } + diff --git a/src/security.cpp b/src/security.cpp index 88d1901..99f762d 100644 --- a/src/security.cpp +++ b/src/security.cpp @@ -21,7 +21,6 @@ #endif void SecurityManagerInit(){ - Debug() << "[SECURITY] Initializing SecurityEngine"; #ifdef __linux__ Debug() << "[SECURITY] initializing SECCOMP filter..."; ctx = seccomp_init(SCMP_ACT_ALLOW); // Default action: Kill the process