main: SDL_AppQuit() now reports the result value.

Fixes #10994.
This commit is contained in:
Ryan C. Gordon
2024-09-29 22:17:11 -04:00
parent 6a7f8b74f1
commit 1787d6ca5c
37 changed files with 48 additions and 42 deletions

View File

@@ -92,7 +92,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View File

@@ -104,7 +104,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View File

@@ -93,7 +93,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_free(wav_data); /* strictly speaking, this isn't necessary because the process is ending, but it's good policy. */
/* SDL will clean up the window/renderer for us. */

View File

@@ -103,7 +103,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_CloseCamera(camera);
SDL_DestroyTexture(texture);

View File

@@ -320,7 +320,7 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event)
return SDL_APP_CONTINUE;
}
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
if (appstate != NULL) {
AppState *as = (AppState *)appstate;

View File

@@ -96,7 +96,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(render_target);
/* SDL will clean up the window/renderer for us. */

View File

@@ -59,7 +59,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View File

@@ -86,7 +86,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View File

@@ -84,7 +84,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View File

@@ -109,7 +109,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View File

@@ -103,7 +103,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View File

@@ -117,7 +117,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View File

@@ -99,7 +99,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View File

@@ -103,7 +103,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View File

@@ -100,7 +100,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View File

@@ -156,7 +156,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View File

@@ -124,7 +124,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View File

@@ -126,7 +126,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View File

@@ -127,7 +127,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View File

@@ -167,7 +167,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(converted_texture);
SDL_DestroyTexture(texture);

View File

@@ -44,7 +44,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}