From 4bd07ea9a4549390b818ca1778a3f98b044716dc Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 18 Aug 2024 08:27:29 -0700
Subject: [PATCH] Revert "PSP: Throw SDL_Quit event upon exit"
This reverts commit e52e68d1602483f442adf0d49b1852e7d7435356.
---
src/main/psp/SDL_psp_main.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/src/main/psp/SDL_psp_main.c b/src/main/psp/SDL_psp_main.c
index 0c3053180b5e6..3d083cc75a9fd 100644
--- a/src/main/psp/SDL_psp_main.c
+++ b/src/main/psp/SDL_psp_main.c
@@ -8,8 +8,6 @@
#include "SDL_main.h"
#include <pspkernel.h>
#include <pspthreadman.h>
-#include "SDL_events.h"
-#include "SDL_timer.h"
#ifdef main
#undef main
@@ -30,15 +28,7 @@ PSP_MAIN_THREAD_ATTR(THREAD_ATTR_VFPU | THREAD_ATTR_USER);
int sdl_psp_exit_callback(int arg1, int arg2, void *common)
{
- SDL_Event exit_event;
- SDL_QuitEvent quit;
-
- quit.type = SDL_QUIT;
- quit.timestamp = SDL_GetTicks();
-
- exit_event.quit = quit;
-
- SDL_PushEvent(&exit_event);
+ sceKernelExitGame();
return 0;
}