mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Added mail viewer to the HLE DSP plugin. Use it by selecting Mail > Scan mails in the sound debugger.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1109 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -22,6 +22,9 @@
|
||||
#ifndef __CDebugger_h__
|
||||
#define __CDebugger_h__
|
||||
|
||||
// general things
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
// wx stuff, I'm not sure if we use all these
|
||||
#ifndef WX_PRECOMP
|
||||
@ -35,8 +38,10 @@
|
||||
#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>
|
||||
@ -46,9 +51,8 @@
|
||||
class CPBView;
|
||||
class IniFile;
|
||||
|
||||
// Window settings - I'm not sure what these do. I just copied them gtom elsewhere basically.
|
||||
// Window settings
|
||||
#undef CDebugger_STYLE
|
||||
|
||||
#define CDebugger_STYLE wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE
|
||||
|
||||
class CDebugger : public wxDialog
|
||||
@ -82,17 +86,53 @@ class CDebugger : public wxDialog
|
||||
|
||||
void OnSettingsCheck(wxCommandEvent& event); // settings
|
||||
|
||||
CPBView* m_GPRListView;
|
||||
// ============== 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);
|
||||
int CountFiles(std::string FileName);
|
||||
|
||||
CPBView* m_GPRListView;
|
||||
std::vector<std::string> sMail, sMailEnd, sFullMail;
|
||||
wxRadioBox *m_RadioBox[4];
|
||||
|
||||
bool gSaveFile; // main options
|
||||
bool gOnlyLooping;
|
||||
int gUpdFreq;// main update freq.
|
||||
bool gPreset; // main presets
|
||||
|
||||
bool gSSBM; // main settings
|
||||
bool gSSBMremedy1;
|
||||
bool gSSBMremedy2;
|
||||
bool gSequenced;
|
||||
bool gVolume;
|
||||
bool gReset;
|
||||
|
||||
bool ScanMails; // mail settings
|
||||
bool StoreMails;
|
||||
|
||||
private:
|
||||
|
||||
// declarations
|
||||
wxNotebook *m_Notebook; // notebook
|
||||
wxPanel *m_PageMain;
|
||||
wxPanel *m_PageMail;
|
||||
|
||||
wxTextCtrl * m_log, * m_log1; // mail
|
||||
|
||||
wxCheckBox *m_Check[9];
|
||||
wxRadioButton *m_Radio[5];
|
||||
wxRadioBox *m_RadioBox[3];
|
||||
wxCheckListBox * m_settings;
|
||||
wxCheckListBox * m_settings, * m_gc, * m_wii, * m_gcwiiset;
|
||||
wxPanel *m_Controller;
|
||||
|
||||
std::vector<std::string> all_all_files, all_files, gc_files, wii_files;
|
||||
|
||||
// WARNING: Make sure these are not also elsewhere, for example in resource.h.
|
||||
enum
|
||||
{
|
||||
@ -101,17 +141,18 @@ class CDebugger : public wxDialog
|
||||
IDC_CHECK2,
|
||||
IDC_CHECK3,
|
||||
IDC_CHECK4,
|
||||
IDC_CHECKLIST1,
|
||||
IDC_RADIO0,
|
||||
IDC_RADIO1,
|
||||
IDC_RADIO2,
|
||||
IDC_RADIO3,
|
||||
IDG_LABEL1,
|
||||
IDG_LABEL2,
|
||||
IDC_CHECKLIST1, IDC_CHECKLIST2, IDC_CHECKLIST3, IDC_CHECKLIST4,
|
||||
IDC_RADIO0, IDC_RADIO1, IDC_RADIO2, IDC_RADIO3,
|
||||
IDG_LABEL1, IDG_LABEL2,
|
||||
ID_UPD,
|
||||
ID_SELC,
|
||||
ID_PRESETS,
|
||||
ID_GPR,
|
||||
ID_NOTEBOOK, // notebook
|
||||
ID_PAGEMAIN,
|
||||
ID_PAGEMAIL,
|
||||
ID_LOG, // mails
|
||||
ID_LOG1,
|
||||
ID_DUMMY_VALUE_ //don't remove this value unless you have other enum values
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user