Move three notifications out of Host

This commit is contained in:
Henrik Rydgård committed 2023-03-21 13:37:19 +01:00
1 parent 06fcc9ccd7
commit dda8635c89
21 files changed
+51 -95

No files matched your search

+4 -5
View File
@@ -355,8 +355,7 @@ void EmuScreen::bootGame(const Path &filename) {
void EmuScreen::bootComplete() {
UpdateUIState(UISTATE_INGAME);
System_Notify(SystemNotification::BOOT_DONE);
host->UpdateDisassembly();
System_Notify(SystemNotification::DISASSEMBLY);
NOTICE_LOG(BOOT, "Loading %s...", PSP_CoreParameter().fileToStart.c_str());
autoLoad();
@@ -448,7 +447,7 @@ static void AfterSaveStateAction(SaveState::Status status, const std::string &me
static void AfterStateBoot(SaveState::Status status, const std::string &message, void *ignored) {
AfterSaveStateAction(status, message, ignored);
Core_EnableStepping(false);
host->UpdateDisassembly();
System_Notify(SystemNotification::DISASSEMBLY);
}
void EmuScreen::sendMessage(const char *message, const char *value) {
@@ -461,12 +460,12 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
bootPending_ = false;
stopRender_ = true;
invalid_ = true;
host->UpdateDisassembly();
System_Notify(SystemNotification::DISASSEMBLY);
} else if (!strcmp(message, "reset")) {
PSP_Shutdown();
bootPending_ = true;
invalid_ = true;
host->UpdateDisassembly();
System_Notify(SystemNotification::DISASSEMBLY);
std::string resetError;
if (!PSP_InitStart(PSP_CoreParameter(), &resetError)) {