mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 02:28:51 +00:00
Improve the Patch editor a bit, it now works fine for viewing entries at least.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1376 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
4df7675d19
commit
f27a08cf7f
5 changed files with 187 additions and 84 deletions
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include "Filesystem.h"
|
||||
#include "IniFile.h"
|
||||
#include "PatchEngine.h"
|
||||
|
||||
#undef ISOPROPERTIES_STYLE
|
||||
#define ISOPROPERTIES_STYLE wxCAPTION | wxSYSTEM_MENU | wxDIALOG_NO_PARENT | wxCLOSE_BOX
|
||||
|
@ -86,10 +87,6 @@ class CISOProperties : public wxDialog
|
|||
wxArrayString arrayStringFor_Patches;
|
||||
wxCheckListBox *Patches;
|
||||
wxButton *EditPatch;
|
||||
wxTextCtrl *EditPatchName;
|
||||
wxTextCtrl *EditPatchOffset;
|
||||
wxRadioBox *EditPatchType;
|
||||
wxTextCtrl *EditPatchValue;
|
||||
wxButton *AddPatch;
|
||||
wxButton *RemovePatch;
|
||||
wxArrayString arrayStringFor_Cheats;
|
||||
|
@ -159,15 +156,6 @@ class CISOProperties : public wxDialog
|
|||
ID_EMUSTATE,
|
||||
ID_PATCHES_LIST,
|
||||
ID_EDITPATCH,
|
||||
IDD_EDITPATCH,
|
||||
ID_EDITPATCH_NAME_TEXT,
|
||||
ID_EDITPATCH_NAME,
|
||||
ID_EDITPATCH_OFFSET_TEXT,
|
||||
ID_EDITPATCH_OFFSET,
|
||||
ID_ENTRY_SELECT,
|
||||
ID_EDITPATCH_TYPE,
|
||||
ID_EDITPATCH_VALUE_TEXT,
|
||||
ID_EDITPATCH_VALUE,
|
||||
ID_ADDPATCH,
|
||||
ID_REMOVEPATCH,
|
||||
ID_CHEATS_LIST,
|
||||
|
@ -213,7 +201,6 @@ class CISOProperties : public wxDialog
|
|||
void OnEditConfig(wxCommandEvent& event);
|
||||
void ListSelectionChanged(wxCommandEvent& event);
|
||||
void PatchButtonClicked(wxCommandEvent& event);
|
||||
void ChangeEditPatchEntry(wxSpinEvent& event);
|
||||
void ActionReplayButtonClicked(wxCommandEvent& event);
|
||||
void RightClickOnBanner(wxMouseEvent& event);
|
||||
void OnBannerImageSave(wxCommandEvent& event);
|
||||
|
@ -225,12 +212,13 @@ class CISOProperties : public wxDialog
|
|||
std::vector<const DiscIO::SFileInfo *> Our_Files;
|
||||
typedef std::vector<const DiscIO::SFileInfo *>::iterator fileIter;
|
||||
|
||||
IniFile GameIni;
|
||||
std::string GameIniFile;
|
||||
|
||||
void CreateDirectoryTree(wxTreeItemId& parent,fileIter& begin,
|
||||
fileIter& end,
|
||||
fileIter& iterPos, char *directory);
|
||||
|
||||
IniFile GameIni;
|
||||
std::string GameIniFile;
|
||||
|
||||
void LoadGameConfig();
|
||||
bool SaveGameConfig();
|
||||
void PatchList_Load();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue