Skip to content

Commit

Permalink
PSP: Throw SDL_EVENT_QUIT event upon exit (thanks @sharkwouter!)
Browse files Browse the repository at this point in the history
Closes libsdl-org#10565

(cherry picked from commit 59ac561)
  • Loading branch information
slouken committed Aug 18, 2024
1 parent 4bd07ea commit a3546e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/psp/SDL_psp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "SDL_main.h"
#include <pspkernel.h>
#include <pspthreadman.h>
#include "../../events/SDL_events_c.h"

#ifdef main
#undef main
Expand All @@ -28,7 +29,7 @@ PSP_MAIN_THREAD_ATTR(THREAD_ATTR_VFPU | THREAD_ATTR_USER);

int sdl_psp_exit_callback(int arg1, int arg2, void *common)
{
sceKernelExitGame();
SDL_SendQuit();
return 0;
}

Expand Down

0 comments on commit a3546e5

Please sign in to comment.