mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
[SDL2] replaced 'exit' with 'return' in main
This commit is contained in:
parent
d583998ade
commit
db973c292a
@ -706,7 +706,7 @@ int main (int argc, char **argv)
|
||||
char caption[256];
|
||||
sprintf(caption, "Genesis Plus GX\\SDL\nusage: %s gamename\n", argv[0]);
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, "Information", caption, sdl_video.window);
|
||||
exit(1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* set default config */
|
||||
@ -747,7 +747,7 @@ int main (int argc, char **argv)
|
||||
if(SDL_Init(0) < 0)
|
||||
{
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", "SDL initialization failed", sdl_video.window);
|
||||
exit(1);
|
||||
return 1;
|
||||
}
|
||||
sdl_video_init();
|
||||
if (use_sound) sdl_sound_init();
|
||||
@ -777,7 +777,7 @@ int main (int argc, char **argv)
|
||||
char caption[256];
|
||||
sprintf(caption, "Error loading file `%s'.", argv[1]);
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", caption, sdl_video.window);
|
||||
exit(1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* initialize system hardware */
|
||||
|
Loading…
Reference in New Issue
Block a user