- Moving "Custom Projection Hack" stuff toward a new modal dialog window

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7049 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
gnick79
2011-02-03 17:51:12 +00:00
parent d5550c19fd
commit 439baff4cc
6 changed files with 292 additions and 150 deletions

View File

@ -37,6 +37,15 @@
#include "ActionReplay.h"
#include "GeckoCodeDiag.h"
struct PHackData
{
bool PHackSZNear;
bool PHackSZFar;
bool PHackExP;
std::string PHZNear;
std::string PHZFar;
};
class CISOProperties : public wxDialog
{
public:
@ -55,6 +64,8 @@ class CISOProperties : public wxDialog
void ActionReplayList_Load();
bool SaveGameConfig();
PHackData PHack_Data;
private:
DECLARE_EVENT_TABLE();
@ -63,7 +74,6 @@ class CISOProperties : public wxDialog
wxStaticBoxSizer *sbCoreOverrides;
wxStaticBoxSizer *sbWiiOverrides;
wxStaticBoxSizer *sbVideoOverrides;
wxStaticBoxSizer *sbPHackSettings;
wxBoxSizer *sEmuState;
wxBoxSizer *sPatches;
wxBoxSizer *sPatchButtons;
@ -93,8 +103,8 @@ class CISOProperties : public wxDialog
wxCheckBox *ForceFiltering,
*EFBCopyEnable, *EFBAccessEnable, *EFBToTextureEnable,
*SafeTextureCache, *DstAlphaPass, *UseXFB, *UseZTPSpeedupHack,
*DListCache, *PHackEnable, *PHackSZNear, *PHackSZFar, *PHackExP;
wxChoice *PHackChoice;
*DListCache, *PHackEnable;
wxButton *PHSettings;
wxButton *EditConfig;
wxStaticText *EmuStateText;
@ -128,17 +138,12 @@ class CISOProperties : public wxDialog
wxStaticText *m_MakerText;
wxStaticText *m_CommentText;
wxStaticText *m_BannerText;
wxStaticText *PHackChoiceText;
wxStaticText *PHackZNearText;
wxStaticText *PHackZFarText;
wxTextCtrl *m_Name;
wxTextCtrl *m_GameID;
wxTextCtrl *m_Country;
wxTextCtrl *m_MakerID;
wxTextCtrl *m_Date;
wxTextCtrl *m_FST;
wxTextCtrl *PHackZNear;
wxTextCtrl *PHackZFar;
wxArrayString arrayStringFor_Lang;
wxChoice *m_Lang;
wxTextCtrl *m_ShortName;
@ -187,15 +192,7 @@ class CISOProperties : public wxDialog
ID_ZTP_SPEEDUP,
ID_DLISTCACHE,
ID_PHACKENABLE,
ID_PHACK_CHOICE_TEXT,
ID_PHACK_CHOICE,
ID_PHACK_SZNEAR,
ID_PHACK_SZFAR,
ID_PHACK_ZNEAR_TEXT,
ID_PHACK_ZNEAR,
ID_PHACK_ZFAR_TEXT,
ID_PHACK_ZFAR,
ID_PHACK_EXP,
ID_PHSETTINGS,
ID_ENABLEPROGRESSIVESCAN,
ID_ENABLEWIDESCREEN,
ID_EDITCONFIG,
@ -263,6 +260,7 @@ class CISOProperties : public wxDialog
void SetRefresh(wxCommandEvent& event);
void OnChangeBannerLang(wxCommandEvent& event);
void OnCheckBoxClicked(wxCommandEvent& event);
void PHackButtonClicked(wxCommandEvent& event);
GameListItem *OpenGameListItem;
@ -276,7 +274,7 @@ class CISOProperties : public wxDialog
void ExportDir(const char* _rFullPath, const char* _rExportFilename,
const int partitionNum = 0);
IniFile GameIni, PHPresetsIni;
IniFile GameIni;
std::string GameIniFile;
void LoadGameConfig();