ISOProperties: Add notification when Cheats are disabled.

If the user enables a cheat while cheats are globally disabled then
display a notice about it. Issue 9690.
This commit is contained in:
EmptyChaos
2016-07-23 01:05:22 +00:00
parent 00a4404045
commit cf0b4c9387
6 changed files with 174 additions and 16 deletions

View File

@ -19,7 +19,6 @@
#include "DolphinWX/ISOFile.h"
#include "DolphinWX/PatchAddEdit.h"
class GameListItem;
class wxButton;
class wxCheckBox;
class wxCheckListBox;
@ -39,6 +38,8 @@ namespace Gecko
class CodeConfigPanel;
}
class ActionReplayCodesPanel;
class CheatWarningMessage;
class GameListItem;
class WiiPartition final : public wxTreeItemData
{
@ -123,6 +124,9 @@ private:
ActionReplayCodesPanel* m_ar_code_panel;
Gecko::CodeConfigPanel* m_geckocode_panel;
CheatWarningMessage* m_cheats_disabled_ar;
CheatWarningMessage* m_cheats_disabled_gecko;
enum
{
ID_TREECTRL = 1000,
@ -203,6 +207,7 @@ private:
void CheckPartitionIntegrity(wxCommandEvent& event);
void OnEmustateChanged(wxCommandEvent& event);
void OnChangeBannerLang(wxCommandEvent& event);
void OnCheatCodeToggled(wxCommandEvent& event);
const GameListItem OpenGameListItem;