Show SDL Error message
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@93
This commit is contained in:
parent
0b0fb71a5e
commit
9e6f36a09b
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
};
|
Loading…
Add table
Reference in a new issue