From a6d5865b4ba3c23b5542659ff5d160cb6bfe37f3 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Wed, 27 May 2026 00:22:00 +0400 Subject: [PATCH] UNTESTED BULLSHIT IN MASTER BRANCH YAPPPII --- installer/installer.sh | 3 +-- src/meow.cpp | 29 +++++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/installer/installer.sh b/installer/installer.sh index 5ef7e3b..1c4651b 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -21,7 +21,6 @@ echo """ LD_LIBRARY_PATH=$install_path\;$LD_LIBRARY_PATH $install_path/oneshot """ > $install_path/oneshot.sh chmod +x $install_path/oneshot.sh -$install_path/oneshot -LD_LIBRARY_PATH +chmod +x $install_path/oneshot echo "Done!" diff --git a/src/meow.cpp b/src/meow.cpp index 78e1bc1..ab793ef 100644 --- a/src/meow.cpp +++ b/src/meow.cpp @@ -2,12 +2,20 @@ #include #include #include +#include +#include +#include #include "meow.h" #include "config.h" #include #include #include #include +#include +#include +#include +#include +#include #ifdef __LINUX__ #include @@ -44,8 +52,6 @@ int crash(const char* reason, int exit_code){ struct tm *now = localtime(&mtime); std::string time = std::to_string(now->tm_hour) + "." + std::to_string(now->tm_min) + "." + std::to_string(now->tm_sec); out.open("crash_" + time + ".txt"); - const int sdlcompiled = SDL_VERSION; - const int sdllinked = SDL_GetVersion(); if (out.is_open()){ out << "[SUNSHINE CRASHDUMP]" << std::endl; out << "CONFIG" << std::endl; @@ -76,12 +82,31 @@ int crash(const char* reason, int exit_code){ out << "commonDataPath: " << conf.commonDataPath << std::endl; out << "" << std::endl; out << "Ruby version: " << rb_gv_get("ruby_version") << std::endl; + + const int sdlcompiled = SDL_VERSION; + const int sdllinked = SDL_GetVersion(); out << "SDL(compiled) version: " << SDL_VERSIONNUM_MAJOR(sdlcompiled) << "." << SDL_VERSIONNUM_MINOR(sdlcompiled) << "." << SDL_VERSIONNUM_MICRO(sdlcompiled) << std::endl; out << "SDL(linked) version: " << SDL_VERSIONNUM_MAJOR(sdllinked) << "." << SDL_VERSIONNUM_MINOR(sdllinked) << "." << SDL_VERSIONNUM_MICRO(sdllinked) << std::endl; + out << "SDL_image(compiled) version: " << SDL_IMAGE_MAJOR_VERSION << "." << SDL_IMAGE_MINOR_VERSION << "." << SDL_IMAGE_MICRO_VERSION << std::endl; + out << "SDL_sound(compiled) version: " << SDL_SOUND_MAJOR_VERSION << "." << SDL_IMAGE_MINOR_VERSION << "." << SDL_IMAGE_MICRO_VERSION << std::endl; + out << "SDL_TTF(compiled) version: " << SDL_TTF_MAJOR_VERSION << "." << SDL_TTF_MINOR_VERSION << "." << SDL_TTF_MICRO_VERSION << std::endl; + out << "Detected OS: " << SDL_GetPlatform() << std::endl; + #ifdef __LINUX__ out << "GTK(compiled) version: " << GTK_MAJOR_VERSION << "." << GTK_MINOR_VERSION << "." << GTK_MICRO_VERSION << std::endl; #endif + + out << "ZLib version: " << ZLIB_VERSION << std::endl; + + out << "OpenAL version: " << alGetString(AL_VERSION) << std::endl; + + out << "Boost versino: " << BOOST_VERSION / 100000 << "." << BOOST_VERSION / 100 % 1000 << "." << BOOST_VERSION % 100 << std::endl; + + //out << "PhysFS version: " << PHYSFS_Version << std::endl; + + out << "Pixman version: " << PIXMAN_VERSION_STRING << std::endl; + out.close(); }else{ printf("[CRASHLOG] Failed to write crashdump file\n");