oh the delay actually makes it laggy on osx lol
This commit is contained in:
parent
5d632a2943
commit
164f4528f0
6
main.c
6
main.c
|
@ -483,15 +483,13 @@ SDL_AppResult SDL_AppIterate(void* appstate) {
|
||||||
SDL_Log("Select your Gameboy Camera ROM dump...");
|
SDL_Log("Select your Gameboy Camera ROM dump...");
|
||||||
st->dialog_state = DIALOG_OPENED;
|
st->dialog_state = DIALOG_OPENED;
|
||||||
SDL_ShowOpenFileDialog(dialog_callback, st, st->window, DIALOG_FILENAME_FILTER, 1, NULL, false);
|
SDL_ShowOpenFileDialog(dialog_callback, st, st->window, DIALOG_FILENAME_FILTER, 1, NULL, false);
|
||||||
return SDL_APP_CONTINUE;
|
/* evil fallthrough */
|
||||||
case DIALOG_OPENED:
|
case DIALOG_OPENED:
|
||||||
SDL_Delay(100);
|
|
||||||
return SDL_APP_CONTINUE;
|
return SDL_APP_CONTINUE;
|
||||||
case DIALOG_CLOSED:
|
case DIALOG_CLOSED:
|
||||||
SDL_Log("Must provide a Gameboy Camera ROM");
|
SDL_Log("Must provide a Gameboy Camera ROM");
|
||||||
return SDL_APP_FAILURE;
|
/* evil fallthrough */
|
||||||
default:
|
default:
|
||||||
SDL_Log("Invalid dialog state");
|
|
||||||
return SDL_APP_FAILURE;
|
return SDL_APP_FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue