mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-29 07:36:20 -04:00
Fix missing return
This commit is contained in:
parent
65036e1a36
commit
931fcd0381
@ -242,6 +242,8 @@ void IsleApp::SetupVideoFlags(
|
|||||||
|
|
||||||
int SDL_AppInit(void** appstate, int argc, char** argv)
|
int SDL_AppInit(void** appstate, int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
*appstate = NULL;
|
||||||
|
|
||||||
// Add subsystems as necessary later
|
// Add subsystems as necessary later
|
||||||
if (SDL_Init(SDL_INIT_VIDEO) != 0 || SDL_Init(SDL_INIT_TIMER) != 0) {
|
if (SDL_Init(SDL_INIT_VIDEO) != 0 || SDL_Init(SDL_INIT_TIMER) != 0) {
|
||||||
SDL_ShowSimpleMessageBox(
|
SDL_ShowSimpleMessageBox(
|
||||||
@ -250,6 +252,7 @@ int SDL_AppInit(void** appstate, int argc, char** argv)
|
|||||||
"\"LEGO® Island\" failed to start. Please quit all other applications and try again.",
|
"\"LEGO® Island\" failed to start. Please quit all other applications and try again.",
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [library:window]
|
// [library:window]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user