mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
ios: Fix empty RAGameView may be displayed when restoring from suspend without a game loaded.
This commit is contained in:
parent
994aa01fcb
commit
67336b690a
@ -133,25 +133,25 @@ void ios_close_game()
|
|||||||
|
|
||||||
void ios_pause_emulator()
|
void ios_pause_emulator()
|
||||||
{
|
{
|
||||||
if (gameViewer)
|
if (_isRunning)
|
||||||
[gameViewer pause];
|
[gameViewer pause];
|
||||||
}
|
}
|
||||||
|
|
||||||
void ios_resume_emulator()
|
void ios_resume_emulator()
|
||||||
{
|
{
|
||||||
if (gameViewer)
|
if (_isRunning)
|
||||||
[gameViewer resume];
|
[gameViewer resume];
|
||||||
}
|
}
|
||||||
|
|
||||||
void ios_suspend_emulator()
|
void ios_suspend_emulator()
|
||||||
{
|
{
|
||||||
if (gameViewer)
|
if (_isRunning)
|
||||||
uninit_drivers();
|
uninit_drivers();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ios_activate_emulator()
|
void ios_activate_emulator()
|
||||||
{
|
{
|
||||||
if (!gameViewer)
|
if (_isRunning)
|
||||||
init_drivers();
|
init_drivers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user