2009-07-28 15:32:10 -06:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2008-12-07 21:46:09 -07:00
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
|
|
|
|
#ifndef __ISOPROPERTIES_h__
|
|
|
|
#define __ISOPROPERTIES_h__
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/filepicker.h>
|
|
|
|
#include <wx/statbmp.h>
|
|
|
|
#include <wx/imaglist.h>
|
2009-12-28 12:34:19 -07:00
|
|
|
#include <wx/fontmap.h>
|
2008-12-07 21:46:09 -07:00
|
|
|
#include <wx/treectrl.h>
|
|
|
|
#include <wx/gbsizer.h>
|
|
|
|
#include <wx/notebook.h>
|
|
|
|
#include <wx/mimetype.h>
|
|
|
|
#include <string>
|
|
|
|
|
2009-02-14 10:32:03 -07:00
|
|
|
#include "ISOFile.h"
|
2008-12-07 21:46:09 -07:00
|
|
|
#include "Filesystem.h"
|
|
|
|
#include "IniFile.h"
|
|
|
|
#include "PatchEngine.h"
|
2008-12-16 21:14:24 -07:00
|
|
|
#include "ActionReplay.h"
|
2010-07-21 19:48:48 -06:00
|
|
|
#include "GeckoCodeDiag.h"
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2011-02-03 10:51:12 -07:00
|
|
|
struct PHackData
|
|
|
|
{
|
|
|
|
bool PHackSZNear;
|
|
|
|
bool PHackSZFar;
|
|
|
|
bool PHackExP;
|
|
|
|
std::string PHZNear;
|
|
|
|
std::string PHZFar;
|
|
|
|
};
|
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
class CISOProperties : public wxDialog
|
|
|
|
{
|
2011-03-16 16:22:21 -06:00
|
|
|
public:
|
|
|
|
CISOProperties(const std::string fileName,
|
2008-12-16 21:14:24 -07:00
|
|
|
wxWindow* parent,
|
|
|
|
wxWindowID id = 1,
|
2011-01-04 21:35:46 -07:00
|
|
|
const wxString& title = _("Properties"),
|
2008-12-16 21:14:24 -07:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
2009-02-14 10:32:03 -07:00
|
|
|
long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER);
|
2011-03-16 16:22:21 -06:00
|
|
|
virtual ~CISOProperties();
|
|
|
|
|
|
|
|
bool bRefreshList;
|
|
|
|
|
|
|
|
void ActionReplayList_Load();
|
|
|
|
bool SaveGameConfig();
|
|
|
|
|
|
|
|
PHackData PHack_Data;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
|
|
|
// Core
|
|
|
|
wxCheckBox *CPUThread, *SkipIdle, *MMU, *MMUBAT, *TLBHack;
|
|
|
|
wxCheckBox *VBeam, *FastDiscSpeed, *BlockMerging, *DSPHLE;
|
|
|
|
// Wii
|
2011-05-25 09:01:49 -06:00
|
|
|
wxCheckBox *EnableProgressiveScan, *EnableWideScreen, *DisableWiimoteSpeaker;
|
2011-03-16 16:22:21 -06:00
|
|
|
// Video
|
2011-10-25 18:19:10 -06:00
|
|
|
wxCheckBox *UseZTPSpeedupHack, *PHackEnable, *UseBBox;
|
2011-03-16 16:22:21 -06:00
|
|
|
wxButton *PHSettings;
|
|
|
|
|
|
|
|
wxArrayString arrayStringFor_EmuState;
|
|
|
|
wxChoice *EmuState;
|
|
|
|
wxTextCtrl *EmuIssues;
|
|
|
|
wxArrayString arrayStringFor_Patches;
|
|
|
|
wxCheckListBox *Patches;
|
|
|
|
wxButton *EditPatch;
|
|
|
|
wxButton *RemovePatch;
|
|
|
|
wxArrayString arrayStringFor_Cheats;
|
|
|
|
wxCheckListBox *Cheats;
|
|
|
|
wxButton *EditCheat;
|
|
|
|
wxButton *RemoveCheat;
|
|
|
|
wxArrayString arrayStringFor_Speedhacks;
|
|
|
|
wxCheckListBox *Speedhacks;
|
|
|
|
wxButton *EditSpeedhack;
|
|
|
|
wxButton *AddSpeedhack;
|
|
|
|
wxButton *RemoveSpeedhack;
|
|
|
|
|
|
|
|
wxTextCtrl *m_Name;
|
|
|
|
wxTextCtrl *m_GameID;
|
|
|
|
wxTextCtrl *m_Country;
|
|
|
|
wxTextCtrl *m_MakerID;
|
|
|
|
wxTextCtrl *m_Date;
|
|
|
|
wxTextCtrl *m_FST;
|
|
|
|
wxArrayString arrayStringFor_Lang;
|
|
|
|
wxChoice *m_Lang;
|
|
|
|
wxTextCtrl *m_ShortName;
|
|
|
|
wxTextCtrl *m_Maker;
|
|
|
|
wxTextCtrl *m_Comment;
|
|
|
|
wxStaticBitmap *m_Banner;
|
|
|
|
|
|
|
|
wxTreeCtrl *m_Treectrl;
|
|
|
|
wxTreeItemId RootId;
|
|
|
|
|
|
|
|
Gecko::CodeConfigPanel *m_geckocode_panel;
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ID_TREECTRL = 1000,
|
|
|
|
|
|
|
|
ID_NOTEBOOK,
|
|
|
|
ID_GAMECONFIG,
|
|
|
|
ID_PATCH_PAGE,
|
|
|
|
ID_ARCODE_PAGE,
|
|
|
|
ID_SPEEDHACK_PAGE,
|
|
|
|
ID_INFORMATION,
|
|
|
|
ID_FILESYSTEM,
|
|
|
|
|
|
|
|
ID_USEDUALCORE,
|
|
|
|
ID_IDLESKIP,
|
|
|
|
ID_MMU,
|
|
|
|
ID_MMUBAT,
|
|
|
|
ID_TLBHACK,
|
|
|
|
ID_VBEAM,
|
|
|
|
ID_DISCSPEED,
|
|
|
|
ID_MERGEBLOCKS,
|
|
|
|
ID_AUDIO_DSP_HLE,
|
|
|
|
ID_ZTP_SPEEDUP,
|
|
|
|
ID_PHACKENABLE,
|
|
|
|
ID_PHSETTINGS,
|
|
|
|
ID_ENABLEPROGRESSIVESCAN,
|
|
|
|
ID_ENABLEWIDESCREEN,
|
2011-05-25 09:01:49 -06:00
|
|
|
ID_DISABLEWIIMOTESPEAKER,
|
2011-03-16 16:22:21 -06:00
|
|
|
ID_EDITCONFIG,
|
|
|
|
ID_EMUSTATE,
|
|
|
|
ID_EMU_ISSUES,
|
|
|
|
ID_PATCHES_LIST,
|
|
|
|
ID_EDITPATCH,
|
|
|
|
ID_ADDPATCH,
|
|
|
|
ID_REMOVEPATCH,
|
|
|
|
ID_CHEATS_LIST,
|
|
|
|
ID_EDITCHEAT,
|
|
|
|
ID_ADDCHEAT,
|
|
|
|
ID_REMOVECHEAT,
|
|
|
|
|
|
|
|
ID_NAME,
|
|
|
|
ID_GAMEID,
|
|
|
|
ID_COUNTRY,
|
|
|
|
ID_MAKERID,
|
|
|
|
ID_DATE,
|
|
|
|
ID_FST,
|
|
|
|
ID_VERSION,
|
|
|
|
ID_LANG,
|
|
|
|
ID_SHORTNAME,
|
|
|
|
ID_LONGNAME,
|
|
|
|
ID_MAKER,
|
|
|
|
ID_COMMENT,
|
|
|
|
ID_BANNER,
|
|
|
|
IDM_EXTRACTDIR,
|
|
|
|
IDM_EXTRACTALL,
|
|
|
|
IDM_EXTRACTFILE,
|
|
|
|
IDM_EXTRACTAPPLOADER,
|
|
|
|
IDM_EXTRACTDOL,
|
|
|
|
IDM_BNRSAVEAS
|
|
|
|
};
|
|
|
|
|
|
|
|
void CreateGUIControls(bool);
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void OnCloseClick(wxCommandEvent& event);
|
|
|
|
void OnEditConfig(wxCommandEvent& event);
|
|
|
|
void ListSelectionChanged(wxCommandEvent& event);
|
|
|
|
void PatchButtonClicked(wxCommandEvent& event);
|
|
|
|
void ActionReplayButtonClicked(wxCommandEvent& event);
|
|
|
|
void RightClickOnBanner(wxMouseEvent& event);
|
|
|
|
void OnBannerImageSave(wxCommandEvent& event);
|
|
|
|
void OnRightClickOnTree(wxTreeEvent& event);
|
|
|
|
void OnExtractFile(wxCommandEvent& event);
|
|
|
|
void OnExtractDir(wxCommandEvent& event);
|
|
|
|
void OnExtractDataFromHeader(wxCommandEvent& event);
|
|
|
|
void SetRefresh(wxCommandEvent& event);
|
|
|
|
void OnChangeBannerLang(wxCommandEvent& event);
|
|
|
|
void PHackButtonClicked(wxCommandEvent& event);
|
|
|
|
|
|
|
|
GameListItem *OpenGameListItem;
|
|
|
|
|
|
|
|
std::vector<const DiscIO::SFileInfo *> GCFiles;
|
|
|
|
typedef std::vector<const DiscIO::SFileInfo *>::iterator fileIter;
|
|
|
|
|
|
|
|
size_t CreateDirectoryTree(wxTreeItemId& parent,
|
|
|
|
std::vector<const DiscIO::SFileInfo*> fileInfos,
|
|
|
|
const size_t _FirstIndex,
|
|
|
|
const size_t _LastIndex);
|
|
|
|
void ExportDir(const char* _rFullPath, const char* _rExportFilename,
|
|
|
|
const int partitionNum = 0);
|
|
|
|
|
|
|
|
IniFile GameIni;
|
|
|
|
std::string GameIniFile;
|
|
|
|
|
|
|
|
void LoadGameConfig();
|
|
|
|
void PatchList_Load();
|
|
|
|
void PatchList_Save();
|
|
|
|
void ActionReplayList_Save();
|
|
|
|
void ChangeBannerDetails(int lang);
|
2008-12-07 21:46:09 -07:00
|
|
|
};
|
|
|
|
#endif
|