mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-03 11:11:25 +00:00
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:
parent
cdee644ddb
commit
29d78e4b5e
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user