mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 04:43:26 +00:00
PS3: Use PauseToken.
This commit is contained in:
parent
7676efd0d9
commit
84da618366
@ -37,9 +37,10 @@
|
||||
*/
|
||||
void PS3SdlEventSource::preprocessEvents(SDL_Event *event) {
|
||||
if (event->type == SDL_APP_DIDENTERBACKGROUND) {
|
||||
PauseToken pt;
|
||||
// XMB opened
|
||||
if (g_engine)
|
||||
g_engine->pauseEngine(true);
|
||||
pt = g_engine->pauseEngine();
|
||||
|
||||
for (;;) {
|
||||
if (!SDL_PollEvent(event)) {
|
||||
@ -56,8 +57,6 @@ void PS3SdlEventSource::preprocessEvents(SDL_Event *event) {
|
||||
return;
|
||||
if (event->type == SDL_APP_DIDENTERFOREGROUND) {
|
||||
// XMB closed
|
||||
if (g_engine)
|
||||
g_engine->pauseEngine(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user