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 { -(void)chatAction: (NSMenuItem *)item {
if (GetUIState() == UISTATE_INGAME) { 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 { -(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 { -(void)openSystemFileBrowser {
int g = 0; int g = 0;
DarwinDirectoryPanelCallback callback = [g] (bool succ, Path thePathChosen) { DarwinDirectoryPanelCallback callback = [g] (bool succ, Path thePathChosen) {
if (succ) if (succ)
System_PostUIMessage(UIMessage::REQUEST_BOOT_GAME, thePathChosen.c_str()); System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, thePathChosen.c_str());
}; };
DarwinFileSystemServices services; DarwinFileSystemServices services;

View file

@ -95,7 +95,7 @@ public:
std::string path = GetFilePath(); std::string path = GetFilePath();
// Delay to be able to launch on startup too // Delay to be able to launch on startup too
std::this_thread::sleep_for(std::chrono::milliseconds(100)); 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: case ID_TOGGLE_BREAK:
if (GetUIState() == UISTATE_PAUSEMENU) { if (GetUIState() == UISTATE_PAUSEMENU) {
// Causes hang // Causes hang (outdated comment?)
//System_PostUIMessage("run", ""); // System_PostUIMessage(UIMessage::REQUEST_GAME_RUN, "");
if (disasmWindow) if (disasmWindow)
SendMessage(disasmWindow->GetDlgHandle(), WM_COMMAND, IDC_STOPGO, 0); SendMessage(disasmWindow->GetDlgHandle(), WM_COMMAND, IDC_STOPGO, 0);