mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-15 22:48:14 +00:00
Check for a valid screen manager in NativeIsAtTopLevel
This commit is contained in:
parent
09e85eb150
commit
d35de81a76
@ -1004,6 +1004,11 @@ void NativeUpdate() {
|
||||
}
|
||||
|
||||
bool NativeIsAtTopLevel() {
|
||||
// This might need some synchronization?
|
||||
if (!screenManager) {
|
||||
ELOG("No screen manager active");
|
||||
return false;
|
||||
}
|
||||
Screen *currentScreen = screenManager->topScreen();
|
||||
if (currentScreen) {
|
||||
bool top = currentScreen->isTopLevel();
|
||||
|
Loading…
x
Reference in New Issue
Block a user