mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #6325 from unknownbrackets/ui-tweaks
Support drag-and-drop of savestate files
This commit is contained in:
commit
ad70cfdcb3
1 changed files with 13 additions and 3 deletions
|
@ -165,6 +165,11 @@ void EmuScreen::dialogFinished(const Screen *dialog, DialogResult result) {
|
|||
RecreateViews();
|
||||
}
|
||||
|
||||
static void AfterStateLoad(bool success, void *ignored) {
|
||||
Core_EnableStepping(false);
|
||||
host->UpdateDisassembly();
|
||||
}
|
||||
|
||||
void EmuScreen::sendMessage(const char *message, const char *value) {
|
||||
// External commands, like from the Windows UI.
|
||||
if (!strcmp(message, "pause")) {
|
||||
|
@ -193,9 +198,14 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
|
|||
}
|
||||
#endif
|
||||
} else if (!strcmp(message, "boot")) {
|
||||
PSP_Shutdown();
|
||||
bootPending_ = true;
|
||||
bootGame(value);
|
||||
const char *ext = strrchr(value, '.');
|
||||
if (!strcmp(ext, ".ppst")) {
|
||||
SaveState::Load(value, &AfterStateLoad);
|
||||
} else {
|
||||
PSP_Shutdown();
|
||||
bootPending_ = true;
|
||||
bootGame(value);
|
||||
}
|
||||
} else if (!strcmp(message, "control mapping")) {
|
||||
UpdateUIState(UISTATE_MENU);
|
||||
screenManager()->push(new ControlMappingScreen());
|
||||
|
|
Loading…
Add table
Reference in a new issue