Skip to content

Commit

Permalink
Revert "PSP: Throw SDL_Quit event upon exit"
Browse files Browse the repository at this point in the history
This reverts commit e52e68d.
  • Loading branch information
slouken committed Aug 18, 2024
1 parent e52e68d commit 4bd07ea
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/main/psp/SDL_psp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}

Expand Down

0 comments on commit 4bd07ea

Please sign in to comment.