From 9e6f36a09b5a383ec059a38edf0d656c75325d18 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Mon, 29 Jul 2002 13:17:06 +0000 Subject: [PATCH] Show SDL Error message Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@93 --- src/gui/sdlmain.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 139f33e4..9b81a650 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -485,7 +485,7 @@ int main(int argc, char* argv[]) { #endif ) < 0 ) { - E_Exit("Can't init SDL"); + E_Exit("Can't init SDL %s",SDL_GetError()); } GFX_StartUp(); /* Init all the dosbox subsystems */ @@ -497,9 +497,9 @@ int main(int argc, char* argv[]) { sdl.joy=SDL_JoystickOpen(0); LOG_MSG("Using joystick %s with %d axes and %d buttons",SDL_JoystickName(0),SDL_JoystickNumAxes(sdl.joy),SDL_JoystickNumButtons(sdl.joy)); JOYSTICK_Enable(0,true); - } + } #endif -/* Start dosbox up */ + /* Start dosbox up */ DOSBOX_StartUp(); } catch (Bitu e) { @@ -510,4 +510,4 @@ int main(int argc, char* argv[]) { return 0; -}; +}; \ No newline at end of file