mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 11:03:45 +01:00
Avoid a crash if trying to do two screen switches at once.
Managed to make this happen while using the UWP File Open dialog - it lagged and I started another action while it hadn't returned.
This commit is contained in:
1 parent
ee48a075b0
commit
529d84a57b
1 file changed
+3
-1
@@ -25,7 +25,9 @@ void ScreenManager::switchScreen(Screen *screen) {
|
||||
// until that switch.
|
||||
// TODO: is this still true?
|
||||
if (nextScreen_ != 0) {
|
||||
FLOG("Already had a nextScreen_");
|
||||
ELOG("Already had a nextScreen_! Asynchronous open while doing something? Deleting the new screen.");
|
||||
delete screen;
|
||||
return;
|
||||
}
|
||||
if (screen == 0) {
|
||||
WLOG("Swiching to a zero screen, this can't be good");
|
||||
|
||||
Reference in new issue
Block a user