From 4d1ae57bc5965bcf4aa2ac45d40cb5805f145c39 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Mon, 18 May 2026 11:22:33 +0400 Subject: [PATCH] Fixes and other bullshit --- src/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5e46202..a910190 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -234,8 +234,8 @@ int main(int argc, char *argv[]){ #endif /* initialize SDL first */ - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMEPAD) < 0){ - showInitError(std::string("Error initializing SDL: ") + SDL_GetError()); + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMEPAD) == false){ + showInitError(std::string("Error initializing SDL: ") + SDL_GetError()) return 0; } @@ -328,7 +328,6 @@ int main(int argc, char *argv[]){ showInitError("Error opening OpenAL device"); SDL_DestroyWindow(win); TTF_Quit(); - //IMG_Quit(); SDL_Quit(); return 0; @@ -357,8 +356,7 @@ int main(int argc, char *argv[]){ rtData.bindingUpdateMsg.post(loadBindings(conf)); /* Start RGSS thread */ - SDL_Thread *rgssThread = - SDL_CreateThread(rgssThreadFun, "rgss", &rtData); + SDL_Thread *rgssThread = SDL_CreateThread(rgssThreadFun, "rgss", &rtData); /* Start event processing */ eventThread.process(rtData);