Add option "--quit-after-ms N" to automatically quit application after N ms

This commit is contained in:
Sylvain
2025-10-20 09:00:27 +02:00
committed by Sam Lantinga
parent 792bde98c3
commit 128baec810
2 changed files with 35 additions and 0 deletions

View File

@@ -153,6 +153,10 @@ typedef struct
SDL_Rect confine;
bool hide_cursor;
/* Misc. */
int quit_after_ms_interval;
SDL_TimerID quit_after_ms_timer;
/* Options info */
SDLTest_ArgumentParser common_argparser;
SDLTest_ArgumentParser video_argparser;