mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-24 21:49:10 +00:00
parent
6a7f8b74f1
commit
1787d6ca5c
37 changed files with 48 additions and 42 deletions
|
@ -190,7 +190,7 @@ to SDL_EVENT_QUIT, etc.
|
|||
Finally:
|
||||
|
||||
```c
|
||||
void SDL_AppQuit(void *appstate);
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result);
|
||||
```
|
||||
|
||||
This is called once before terminating the app--assuming the app isn't being
|
||||
|
@ -201,3 +201,6 @@ from main(), so atexit handles will run, if your platform supports that.
|
|||
|
||||
If you set `*appstate` during SDL_AppInit, this is where you should free that
|
||||
data, as this pointer will not be provided to your app again.
|
||||
|
||||
The SDL_AppResult value that terminated the app is provided here, in case
|
||||
it's useful to know if this was a successful or failing run of the app.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue