Build fix for non-windows

First step to fix UnitTest
This commit is contained in:
sum2012 2017-01-29 03:56:49 +08:00
parent 2c58d34f3e
commit 860661dc14
2 changed files with 6 additions and 4 deletions

View File

@ -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);
@ -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;
}
@ -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;
}

View File

@ -1259,7 +1259,7 @@ namespace MainWindow {
return FALSE;
}
void ChangeMenu() {
void _ChangeMenu() {
SetIngameMenuItemStates(GetMenu(GetHWND()), UISTATE_INGAME);
}
}