mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Revert "PSP: Throw SDL_Quit event upon exit"
This reverts commit e52e68d160
.
This commit is contained in:
@@ -8,8 +8,6 @@
|
|||||||
#include "SDL_main.h"
|
#include "SDL_main.h"
|
||||||
#include <pspkernel.h>
|
#include <pspkernel.h>
|
||||||
#include <pspthreadman.h>
|
#include <pspthreadman.h>
|
||||||
#include "SDL_events.h"
|
|
||||||
#include "SDL_timer.h"
|
|
||||||
|
|
||||||
#ifdef main
|
#ifdef main
|
||||||
#undef 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)
|
int sdl_psp_exit_callback(int arg1, int arg2, void *common)
|
||||||
{
|
{
|
||||||
SDL_Event exit_event;
|
sceKernelExitGame();
|
||||||
SDL_QuitEvent quit;
|
|
||||||
|
|
||||||
quit.type = SDL_QUIT;
|
|
||||||
quit.timestamp = SDL_GetTicks();
|
|
||||||
|
|
||||||
exit_event.quit = quit;
|
|
||||||
|
|
||||||
SDL_PushEvent(&exit_event);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user