Buildfixes

This commit is contained in:
Henrik Rydgård 2023-09-30 12:06:07 +02:00
parent 19e4de5088
commit c0e5da02ff
3 changed files with 6 additions and 6 deletions

View File

@ -452,7 +452,7 @@ void OSXOpenURL(const char *url) {
-(void)chatAction: (NSMenuItem *)item {
if (GetUIState() == UISTATE_INGAME) {
System_PostUIMessage(UIMessage::REQUEST_CHAT_SCREEN);
System_PostUIMessage(UIMessage::SHOW_CHAT_SCREEN);
}
}
@ -631,14 +631,14 @@ TOGGLE_METHOD(FullScreen, g_Config.bFullScreen, System_MakeRequest(SystemRequest
}
-(void)openRecentItem: (NSMenuItem *)item {
System_PostUIMessage(UIMessage::REQUEST_BOOT_GAME, g_Config.RecentIsos()[item.tag].c_str());
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, g_Config.RecentIsos()[item.tag].c_str());
}
-(void)openSystemFileBrowser {
int g = 0;
DarwinDirectoryPanelCallback callback = [g] (bool succ, Path thePathChosen) {
if (succ)
System_PostUIMessage(UIMessage::REQUEST_BOOT_GAME, thePathChosen.c_str());
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, thePathChosen.c_str());
};
DarwinFileSystemServices services;

View File

@ -95,7 +95,7 @@ public:
std::string path = GetFilePath();
// Delay to be able to launch on startup too
std::this_thread::sleep_for(std::chrono::milliseconds(100));
System_PostUIMessage("boot", path.c_str());
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, path);
});
}
}

View File

@ -457,8 +457,8 @@ namespace MainWindow {
case ID_TOGGLE_BREAK:
if (GetUIState() == UISTATE_PAUSEMENU) {
// Causes hang
//System_PostUIMessage("run", "");
// Causes hang (outdated comment?)
// System_PostUIMessage(UIMessage::REQUEST_GAME_RUN, "");
if (disasmWindow)
SendMessage(disasmWindow->GetDlgHandle(), WM_COMMAND, IDC_STOPGO, 0);