oh the delay actually makes it laggy on osx lol

This commit is contained in:
lif 2024-12-24 14:49:30 -08:00
parent 5d632a2943
commit 164f4528f0
1 changed files with 2 additions and 4 deletions

6
main.c
View File

@ -483,15 +483,13 @@ SDL_AppResult SDL_AppIterate(void* appstate) {
SDL_Log("Select your Gameboy Camera ROM dump...");
st->dialog_state = DIALOG_OPENED;
SDL_ShowOpenFileDialog(dialog_callback, st, st->window, DIALOG_FILENAME_FILTER, 1, NULL, false);
return SDL_APP_CONTINUE;
/* evil fallthrough */
case DIALOG_OPENED:
SDL_Delay(100);
return SDL_APP_CONTINUE;
case DIALOG_CLOSED:
SDL_Log("Must provide a Gameboy Camera ROM");
return SDL_APP_FAILURE;
/* evil fallthrough */
default:
SDL_Log("Invalid dialog state");
return SDL_APP_FAILURE;
}
}