Skip to content

Commit

Permalink
Build fix for non-windows
Browse files Browse the repository at this point in the history
First step to fix UnitTest
  • Loading branch information
sum2012 committed Jan 28, 2017
1 parent 2c58d34 commit 860661d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Core/HLE/sceUmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ void __UmdDoState(PointerWrap &p)

if (s > 1) {
p.Do(UMDReplacePermit);
#ifdef USING_WIN_UI
if (UMDReplacePermit)
MainWindow::ChangeMenu();
MainWindowMenu:MainWindow::_ChangeMenu();
#endif
}
if (s > 2) {
p.Do(umdInsertChangeEvent);
Expand Down Expand Up @@ -538,7 +540,7 @@ static u32 sceUmdReplaceProhibit()
UMDReplacePermit = false;
DEBUG_LOG(SCEIO,"sceUmdReplaceProhibit()");
#ifdef USING_WIN_UI
MainWindow::ChangeMenu();
MainWindowMenu:MainWindow::_ChangeMenu();
#endif
return 0;
}
Expand All @@ -548,7 +550,7 @@ static u32 sceUmdReplacePermit()
UMDReplacePermit = true;
DEBUG_LOG(SCEIO,"sceUmdReplacePermit()");
#ifdef USING_WIN_UI
MainWindow::ChangeMenu();
MainWindowMenu:MainWindow::_ChangeMenu();
#endif
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion Windows/MainWindowMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ namespace MainWindow {
return FALSE;
}

void ChangeMenu() {
void _ChangeMenu() {
SetIngameMenuItemStates(GetMenu(GetHWND()), UISTATE_INGAME);
}
}

0 comments on commit 860661d

Please sign in to comment.