WIP Gecko(ocarina) code support: There are a bunch code types that need coding/fixing/cleanup, but many codes should be functional. The game properties and "Cheats Manager"(formally Action Replay Manager) dialogs now have a "Gecko Codes" tab to view/enable/disable codes. Currently, you must click "Edit Config" and manually add your codes to the [Gecko] inifile section of your gameinis for them to be displayed.(same format as the AR codes) I'm going to add Add/Edit dialogs similar to the AR codes and support codes with modifiers. I added the new files to scons as best as I could without testing :p.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5930 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak
2010-07-22 01:48:48 +00:00
parent a103576a54
commit fb36de2338
16 changed files with 1325 additions and 13 deletions

View File

@ -0,0 +1,45 @@
#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::vector<GeckoCode>& GetCodes() const { return m_gcodes; }
protected:
void UpdateInfoBox(wxCommandEvent&);
void ToggleCode(wxCommandEvent& evt);
void ApplyChanges(wxCommandEvent&);
private:
std::vector<GeckoCode> m_gcodes;
// wxwidgets stuff
wxCheckListBox *m_listbox_gcodes;
struct
{
wxStaticText *label_name, *label_description, *label_creator;
wxListBox *listbox_codes;
} m_infobox;
};
}
#endif