From 13caaab8daab63fbf8e4be5c17050866bd3f7cdb Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Tue, 6 Mar 2012 05:43:50 +0000 Subject: [PATCH] sdl: minor code cleanup --- src/drivers/sdl/sdl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/drivers/sdl/sdl.cpp b/src/drivers/sdl/sdl.cpp index c1bcd846..f22cc47d 100644 --- a/src/drivers/sdl/sdl.cpp +++ b/src/drivers/sdl/sdl.cpp @@ -537,8 +537,7 @@ int main(int argc, char *argv[]) // Initialize the configuration system g_config = InitConfig(); - - + if(!g_config) { SDL_Quit(); return -1; @@ -563,10 +562,10 @@ int main(int argc, char *argv[]) } #ifdef _GTK else if(strcmp(argv[i], "--nogui") == 0) - { + { noGui = 1; argv[i] = ""; - } + } #endif } int romIndex = g_config->parse(argc, argv);