Procházet zdrojové kódy

PSP: Throw SDL_EVENT_QUIT event upon exit (thanks @sharkwouter!)

Closes https://github.com/libsdl-org/SDL/pull/10565
Sam Lantinga před 8 měsíci
rodič
revize
59ac561062
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/main/psp/SDL_sysmain_runapp.c

+ 2 - 1
src/main/psp/SDL_sysmain_runapp.c

@@ -27,6 +27,7 @@
 
 #include <pspkernel.h>
 #include <pspthreadman.h>
+#include "../../events/SDL_events_c.h"
 
 /* If application's main() is redefined as SDL_main, and libSDL_main is
    linked, then this file will create the standard exit callback,
@@ -43,7 +44,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;
 }