Skip to content

Commit

Permalink
Buildfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 30, 2023
1 parent 19e4de5 commit c0e5da0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions SDL/CocoaBarItems.mm
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ -(void)resetAction: (NSMenuItem *)item {

-(void)chatAction: (NSMenuItem *)item {
if (GetUIState() == UISTATE_INGAME) {
System_PostUIMessage(UIMessage::REQUEST_CHAT_SCREEN);
System_PostUIMessage(UIMessage::SHOW_CHAT_SCREEN);
}
}

Expand Down Expand Up @@ -631,14 +631,14 @@ -(void)addOpenRecentlyItem {
}

-(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;
Expand Down
2 changes: 1 addition & 1 deletion UWP/UWPHelpers/LaunchItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class LaunchItem {
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);
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions Windows/MainWindowMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0e5da0

Please sign in to comment.