Eliminate most of the popup menus as per Henrik's request, and fix a minor bug with AT3+ in NewUI.

This commit is contained in:
The Dax 2013-08-17 07:37:34 -04:00
parent ef88f78aab
commit 229c0f16ab
4 changed files with 15 additions and 1 deletions

View file

@ -38,7 +38,10 @@
#ifdef _WIN32
namespace MainWindow {
enum { WM_USER_LOG_STATUS_CHANGED = WM_USER + 200 };
enum {
WM_USER_LOG_STATUS_CHANGED = WM_USER + 200,
WM_USER_ATRAC_STATUS_CHANGED = WM_USER + 300,
};
extern HWND hwndMain;
}
#endif
@ -345,6 +348,9 @@ UI::EventReturn GameSettingsScreen::OnBack(UI::EventParams &e) {
else Atrac3plus_Decoder::Shutdown();
}
#ifdef _WIN32
PostMessage(MainWindow::hwndMain, MainWindow::WM_USER_ATRAC_STATUS_CHANGED, 0, 0);
#endif
return UI::EVENT_DONE;
}

View file

@ -1202,6 +1202,13 @@ namespace MainWindow
}
break;
case WM_USER_ATRAC_STATUS_CHANGED:
if(g_Config.bEnableAtrac3plus && Atrac3plus_Decoder::IsInstalled())
EnableMenuItem(menu, ID_EMULATION_ATRAC3_SOUND, MF_ENABLED);
else
EnableMenuItem(menu, ID_EMULATION_ATRAC3_SOUND, MF_GRAYED);
break;
case WM_MENUSELECT:
// Unfortunately, accelerate keys (hotkeys) shares the same enabled/disabled states
// with corresponding menu items.

View file

@ -10,6 +10,7 @@ namespace MainWindow
enum {
WM_USER_SAVESTATE_FINISH = WM_USER + 100,
WM_USER_LOG_STATUS_CHANGED = WM_USER + 200,
WM_USER_ATRAC_STATUS_CHANGED = WM_USER + 300,
};
enum {

Binary file not shown.