mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Move NotifySwitchUMDUpdated
This commit is contained in:
parent
c92a4acb40
commit
fc1732cc22
9 changed files with 7 additions and 18 deletions
|
@ -511,7 +511,7 @@ static u32 sceUmdReplaceProhibit()
|
|||
DEBUG_LOG(SCEIO,"sceUmdReplaceProhibit()");
|
||||
if (UMDReplacePermit) {
|
||||
UMDReplacePermit = false;
|
||||
host->NotifySwitchUMDUpdated();
|
||||
System_Notify(SystemNotification::SWITCH_UMD_UPDATED);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -521,7 +521,7 @@ static u32 sceUmdReplacePermit()
|
|||
DEBUG_LOG(SCEIO,"sceUmdReplacePermit()");
|
||||
if (!UMDReplacePermit) {
|
||||
UMDReplacePermit = true;
|
||||
host->NotifySwitchUMDUpdated();
|
||||
System_Notify(SystemNotification::SWITCH_UMD_UPDATED);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ public:
|
|||
virtual ~Host() {}
|
||||
|
||||
virtual void SetDebugMode(bool mode) { }
|
||||
virtual void NotifySwitchUMDUpdated() {}
|
||||
|
||||
virtual bool InitGraphics(std::string *error_string, GraphicsContext **ctx) = 0;
|
||||
virtual void ShutdownGraphics() = 0;
|
||||
|
|
|
@ -65,8 +65,6 @@ public:
|
|||
NativeMessageReceived(message.c_str(), value.c_str());
|
||||
}
|
||||
|
||||
void NotifySwitchUMDUpdated() override {}
|
||||
|
||||
private:
|
||||
Path SymbolMapFilename(Path currentFilename);
|
||||
MainWindow* mainWindow;
|
||||
|
|
|
@ -43,6 +43,4 @@ public:
|
|||
void SendUIMessage(const std::string &message, const std::string &value) override {
|
||||
NativeMessageReceived(message.c_str(), value.c_str());
|
||||
}
|
||||
|
||||
void NotifySwitchUMDUpdated() override {}
|
||||
};
|
||||
|
|
|
@ -31,13 +31,11 @@ public:
|
|||
|
||||
void NotifyUserMessage(const std::string &message, float duration = 1.0f, u32 color = 0x00FFFFFF, const char *id = nullptr) override;
|
||||
|
||||
void NotifySwitchUMDUpdated() override {}
|
||||
|
||||
GraphicsContext *GetGraphicsContext() { return nullptr; }
|
||||
|
||||
private:
|
||||
void SetConsolePosition();
|
||||
void UpdateConsolePosition();
|
||||
|
||||
std::list<std::unique_ptr<InputDevice>> input;
|
||||
std::list<std::unique_ptr<InputDevice>> input;
|
||||
};
|
||||
|
|
|
@ -355,7 +355,3 @@ void WindowsHost::NotifyUserMessage(const std::string &message, float duration,
|
|||
void WindowsHost::SendUIMessage(const std::string &message, const std::string &value) {
|
||||
NativeMessageReceived(message.c_str(), value.c_str());
|
||||
}
|
||||
|
||||
void WindowsHost::NotifySwitchUMDUpdated() {
|
||||
PostMessage(mainWindow_, MainWindow::WM_USER_SWITCHUMD_UPDATED, 0, 0);
|
||||
}
|
||||
|
|
|
@ -56,8 +56,6 @@ public:
|
|||
void NotifyUserMessage(const std::string &message, float duration = 1.0f, u32 color = 0x00FFFFFF, const char *id = nullptr) override;
|
||||
void SendUIMessage(const std::string &message, const std::string &value) override;
|
||||
|
||||
void NotifySwitchUMDUpdated() override;
|
||||
|
||||
GraphicsContext *GetGraphicsContext() { return gfx_; }
|
||||
|
||||
private:
|
||||
|
|
|
@ -417,6 +417,10 @@ void System_Notify(SystemNotification notification) {
|
|||
g_symbolMap->SortSymbols();
|
||||
PostMessage(MainWindow::GetHWND(), WM_USER + 1, 0, 0);
|
||||
break;
|
||||
|
||||
case SystemNotification::SWITCH_UMD_UPDATED:
|
||||
PostMessage(MainWindow::GetHWND(), MainWindow::WM_USER_SWITCHUMD_UPDATED, 0, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -68,8 +68,6 @@ public:
|
|||
|
||||
void SendDebugScreenshot(const u8 *pixbuf, u32 w, u32 h) override;
|
||||
|
||||
void NotifySwitchUMDUpdated() override {}
|
||||
|
||||
// Unique for HeadlessHost
|
||||
virtual void SwapBuffers() {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue