mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 02:09:05 +02:00
Check for a valid screen manager in NativeIsAtTopLevel
This commit is contained in:
1 parent
09e85eb150
commit
d35de81a76
1 file changed
+5
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user