mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
7cc2e3146b
The Cheats manager should be updated when the ISO is changed because it's non-modal Removing code that read the ID from file because the cheats manager only has a use when an emulation is running (when the ID doesn't need to be read from the ISO again because it's in a variable). This fixes loading Gecko codes for .wad during an emulation because "VolumeHandler::GetVolume()" return false in this case
56 lines
1.0 KiB
C++
56 lines
1.0 KiB
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#ifndef __GECKOCODEDIAG_h__
|
|
#define __GECKOCODEDIAG_h__
|
|
|
|
#include "GeckoCode.h"
|
|
#include "GeckoCodeConfig.h"
|
|
|
|
#include "wx/wx.h"
|
|
|
|
namespace Gecko
|
|
{
|
|
|
|
|
|
class CodeConfigPanel : public wxPanel
|
|
{
|
|
public:
|
|
CodeConfigPanel(wxWindow* const parent);
|
|
|
|
|
|
void LoadCodes(const IniFile& inifile, const std::string& gameid = "", bool checkRunning = false);
|
|
const std::vector<GeckoCode>& GetCodes() const { return m_gcodes; }
|
|
|
|
protected:
|
|
void UpdateInfoBox(wxCommandEvent&);
|
|
void ToggleCode(wxCommandEvent& evt);
|
|
void DownloadCodes(wxCommandEvent&);
|
|
//void ApplyChanges(wxCommandEvent&);
|
|
|
|
void UpdateCodeList(bool checkRunning = false);
|
|
|
|
private:
|
|
std::vector<GeckoCode> m_gcodes;
|
|
|
|
std::string m_gameid;
|
|
|
|
// wxwidgets stuff
|
|
wxCheckListBox *m_listbox_gcodes;
|
|
struct
|
|
{
|
|
wxStaticText *label_name, *label_notes, *label_creator;
|
|
wxTextCtrl *textctrl_notes;
|
|
wxListBox *listbox_codes;
|
|
} m_infobox;
|
|
wxButton* btn_download;
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|
|
|