Resize and clear cache when changing res.

Native only handles one message at a time, and resizing can require both
(because of auto settings.)
This commit is contained in:
Unknown W. Brackets 2013-11-19 22:44:12 -08:00
parent cdee644ddb
commit 29d78e4b5e

View File

@ -170,29 +170,23 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
Core_EnableStepping(true);
}
#endif
}
else if (!strcmp(message, "boot")) {
} else if (!strcmp(message, "boot")) {
PSP_Shutdown();
bootGame(value);
}
else if (!strcmp(message, "control mapping")) {
} else if (!strcmp(message, "control mapping")) {
UpdateUIState(UISTATE_MENU);
screenManager()->push(new ControlMappingScreen());
}
else if (!strcmp(message, "settings")) {
} else if (!strcmp(message, "settings")) {
UpdateUIState(UISTATE_MENU);
screenManager()->push(new GameSettingsScreen(gamePath_));
}
else if (!strcmp(message, "gpu resized")) {
if (gpu) gpu->Resized();
}
else if (!strcmp(message, "gpu clear cache")) {
if (gpu) gpu->ClearCacheNextFrame();
}
else if (!strcmp(message, "gpu dump next frame")) {
} else if (!strcmp(message, "gpu resized") || !strcmp(message, "gpu clear cache")) {
if (gpu) {
gpu->ClearCacheNextFrame();
gpu->Resized();
}
} else if (!strcmp(message, "gpu dump next frame")) {
if (gpu) gpu->DumpNextFrame();
}
if (!strcmp(message, "clear jit")) {
} else if (!strcmp(message, "clear jit")) {
if (MIPSComp::jit) {
MIPSComp::jit->ClearCache();
}