2008-12-08 04:46:09 +00:00
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Licensetype: GNU General Public License (GPL)
|
|
|
|
//
|
|
|
|
// 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/
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2009-07-02 19:00:27 +00:00
|
|
|
#ifndef __DSPDebuggerHLE_h__
|
|
|
|
#define __DSPDebuggerHLE_h__
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
// general things
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
// wx stuff, I'm not sure if we use all these
|
|
|
|
#ifndef WX_PRECOMP
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#else
|
|
|
|
#include <wx/wxprec.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/statbox.h>
|
|
|
|
#include <wx/statbmp.h>
|
|
|
|
#include <wx/datetime.h> // for the timestamps
|
|
|
|
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/notebook.h>
|
|
|
|
#include <wx/filepicker.h>
|
|
|
|
#include <wx/listctrl.h>
|
|
|
|
#include <wx/imaglist.h>
|
|
|
|
|
|
|
|
#include "../Globals.h"
|
|
|
|
|
|
|
|
class CPBView;
|
|
|
|
class IniFile;
|
|
|
|
|
|
|
|
|
2009-07-02 19:00:27 +00:00
|
|
|
class DSPDebuggerHLE : public wxDialog
|
2008-12-08 04:46:09 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
|
|
|
public:
|
2009-07-02 19:00:27 +00:00
|
|
|
DSPDebuggerHLE(wxWindow *parent,
|
|
|
|
wxWindowID id = 1,
|
2009-08-26 23:28:30 +00:00
|
|
|
const wxString &title = wxT("Sound"),
|
2009-07-02 19:00:27 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
2009-08-26 23:28:30 +00:00
|
|
|
long style = wxNO_BORDER);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2009-07-02 19:00:27 +00:00
|
|
|
virtual ~DSPDebuggerHLE();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
void Save(IniFile& _IniFile) const;
|
|
|
|
void Load(IniFile& _IniFile);
|
|
|
|
|
|
|
|
void NotifyUpdate();
|
|
|
|
void OnUpdate(wxCommandEvent& event);
|
|
|
|
|
2009-07-02 19:00:27 +00:00
|
|
|
// options
|
2008-12-08 04:46:09 +00:00
|
|
|
void ShowBase(wxCommandEvent& event);
|
|
|
|
void OnOptions(wxCommandEvent& event);
|
|
|
|
void OnShowAll(wxCommandEvent& event);
|
|
|
|
|
2009-07-02 19:00:27 +00:00
|
|
|
// update frequency
|
|
|
|
void ChangeFrequency(wxCommandEvent& event);
|
2008-12-08 04:46:09 +00:00
|
|
|
void DoChangeFrequency();
|
|
|
|
void ChangePreset(wxCommandEvent& event);
|
|
|
|
void DoChangePreset();
|
|
|
|
|
2009-07-02 19:00:27 +00:00
|
|
|
// settings
|
|
|
|
void OnSettingsCheck(wxCommandEvent& event);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
// ============== Mail
|
|
|
|
void DoUpdateMail();
|
|
|
|
void UpdateMail(wxNotebookEvent& event);
|
|
|
|
void ChangeMail(wxCommandEvent& event);
|
|
|
|
void ReadDir();
|
|
|
|
bool NoDuplicate(std::string FileName);
|
|
|
|
void OnGameChange(wxCommandEvent& event);
|
|
|
|
void MailSettings(wxCommandEvent& event);
|
|
|
|
void Readfile(std::string FileName, bool GC);
|
|
|
|
std::string Readfile_(std::string FileName);
|
|
|
|
u32 CountFiles(std::string FileName);
|
|
|
|
|
|
|
|
// ============== Blocks
|
|
|
|
void DoScrollBlocks();
|
|
|
|
void ScrollBlocksMouse(wxMouseEvent& event);
|
|
|
|
void ScrollBlocksCursor(wxScrollWinEvent& event);
|
|
|
|
|
|
|
|
|
|
|
|
CPBView* m_GPRListView;
|
|
|
|
std::vector<std::string> sMail, sMailEnd, sFullMail;
|
|
|
|
wxRadioBox * m_RadioBox[4], * m_RadioBoxShowAll;
|
|
|
|
|
|
|
|
bool gSaveFile; // main options
|
|
|
|
bool gOnlyLooping;
|
|
|
|
bool gShowAll;
|
|
|
|
int giShowAll;
|
|
|
|
int gUpdFreq;// main update freq.
|
|
|
|
int gPreset; // main presets
|
|
|
|
bool bShowBase; // main presets
|
|
|
|
u32 gLastBlock;
|
|
|
|
|
|
|
|
bool ScanMails; // mail settings
|
|
|
|
bool StoreMails;
|
|
|
|
|
|
|
|
bool upd95; bool upd94; bool upd93; bool upd92; // block view settings
|
|
|
|
std::string str0; std::string str95; std::string str94; std::string str93; std::string str92;
|
|
|
|
std::vector<std::string> PBn; std::vector<std::string> PBp;
|
|
|
|
|
|
|
|
// members
|
|
|
|
wxTextCtrl * m_log, * m_log1, // mail
|
|
|
|
* m_bl0, * m_bl95, * m_bl94; // blocks
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
// declarations
|
|
|
|
wxNotebook *m_Notebook; // notebook
|
|
|
|
wxPanel *m_PageMain, *m_PageMail, *m_PageBlock;
|
|
|
|
|
|
|
|
wxCheckBox *m_Check[9];
|
|
|
|
wxRadioButton *m_Radio[5];
|
|
|
|
wxCheckListBox * m_options, * m_opt_showall, * m_settings, * m_gc, * m_wii, * m_gcwiiset;
|
|
|
|
wxPanel *m_Controller;
|
|
|
|
|
|
|
|
std::vector<std::string> all_all_files, all_files, gc_files, wii_files;
|
|
|
|
|
2009-01-17 21:42:43 +00:00
|
|
|
// WARNING: Make sure these are not also elsewhere
|
2008-12-08 04:46:09 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
IDC_CHECK0 = 2000,
|
|
|
|
IDC_CHECK1,
|
|
|
|
IDC_CHECK2,
|
|
|
|
IDC_CHECK3,
|
|
|
|
IDC_CHECK4,
|
|
|
|
IDC_CHECKLIST1, IDC_CHECKLIST2, IDC_CHECKLIST3, IDC_CHECKLIST4, IDC_CHECKLIST5, IDC_CHECKLIST6,
|
|
|
|
IDC_RADIO0, IDC_RADIO1, IDC_RADIO2, IDC_RADIO3, IDC_RADIO4,
|
|
|
|
IDG_LABEL1, IDG_LABEL2,
|
|
|
|
ID_UPD,
|
|
|
|
ID_SELC,
|
|
|
|
ID_PRESETS,
|
|
|
|
ID_GPR,
|
|
|
|
ID_NOTEBOOK, ID_PAGEMAIN, ID_PAGEMAIL, ID_PAGEBLOCK, // notebook
|
|
|
|
ID_LOG, ID_LOG1, // mails
|
|
|
|
ID_BL0, ID_BL95, ID_BL94, ID_BL93, ID_BL92,
|
|
|
|
};
|
|
|
|
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void CreateGUIControls();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|