Second and final pass of clearing out tabs.
This commit is contained in:
@@ -44,9 +44,9 @@ CARCodeAddEdit::CARCodeAddEdit(int _selection, wxWindow* parent, wxWindowID id,
|
||||
UpdateTextCtrl(tempEntries);
|
||||
|
||||
sgEntry->Add(EditCheatNameText, wxGBPosition(0, 0), wxGBSpan(1, 1), wxALIGN_CENTER|wxALL, 5);
|
||||
sgEntry->Add(EditCheatName, wxGBPosition(0, 1), wxGBSpan(1, 1), wxEXPAND|wxALL, 5);
|
||||
sgEntry->Add(EntrySelection, wxGBPosition(0, 2), wxGBSpan(2, 1), wxEXPAND|wxALL, 5);
|
||||
sgEntry->Add(EditCheatCode, wxGBPosition(1, 0), wxGBSpan(1, 2), wxEXPAND|wxALL, 5);
|
||||
sgEntry->Add(EditCheatName, wxGBPosition(0, 1), wxGBSpan(1, 1), wxEXPAND|wxALL, 5);
|
||||
sgEntry->Add(EntrySelection, wxGBPosition(0, 2), wxGBSpan(2, 1), wxEXPAND|wxALL, 5);
|
||||
sgEntry->Add(EditCheatCode, wxGBPosition(1, 0), wxGBSpan(1, 2), wxEXPAND|wxALL, 5);
|
||||
sgEntry->AddGrowableCol(1);
|
||||
sgEntry->AddGrowableRow(1);
|
||||
sbEntry->Add(sgEntry, 1, wxEXPAND|wxALL);
|
||||
|
||||
@@ -25,26 +25,28 @@ namespace ButtonManager
|
||||
std::map<std::pair<int, int>, Button*> m_buttons;
|
||||
std::map<std::pair<int, int>, Axis*> m_axises;
|
||||
std::unordered_map<std::string, InputDevice*> m_controllers;
|
||||
const char* configStrings[] = { "InputA",
|
||||
"InputB",
|
||||
"InputStart",
|
||||
"InputX",
|
||||
"InputY",
|
||||
"InputZ",
|
||||
"DPadUp",
|
||||
"DPadDown",
|
||||
"DPadLeft",
|
||||
"DPadRight",
|
||||
"MainUp",
|
||||
"MainDown",
|
||||
"MainLeft",
|
||||
"MainRight",
|
||||
"CStickUp",
|
||||
"CStickDown",
|
||||
"CStickLeft",
|
||||
"CStickRight",
|
||||
"InputL",
|
||||
"InputR" };
|
||||
const char* configStrings[] = {
|
||||
"InputA",
|
||||
"InputB",
|
||||
"InputStart",
|
||||
"InputX",
|
||||
"InputY",
|
||||
"InputZ",
|
||||
"DPadUp",
|
||||
"DPadDown",
|
||||
"DPadLeft",
|
||||
"DPadRight",
|
||||
"MainUp",
|
||||
"MainDown",
|
||||
"MainLeft",
|
||||
"MainRight",
|
||||
"CStickUp",
|
||||
"CStickDown",
|
||||
"CStickLeft",
|
||||
"CStickRight",
|
||||
"InputL",
|
||||
"InputR"
|
||||
};
|
||||
const int configStringNum = 20;
|
||||
|
||||
void AddBind(std::string dev, sBind *bind)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "Frame.h"
|
||||
#include "WxUtils.h"
|
||||
|
||||
#define MAX_CHEAT_SEARCH_RESULTS_DISPLAY 256
|
||||
#define MAX_CHEAT_SEARCH_RESULTS_DISPLAY 256
|
||||
extern std::vector<ActionReplay::ARCode> arCodes;
|
||||
extern CFrame* main_frame;
|
||||
|
||||
@@ -424,7 +424,7 @@ void CheatSearchTab::FilterCheatSearchResults(wxCommandEvent&)
|
||||
const int filters[] = {7, 6, 1, 2, 4};
|
||||
int filter_mask = filters[search_type->GetSelection()];
|
||||
|
||||
if (value_x_radiobtn.rad_oldvalue->GetValue()) // using old value comparison
|
||||
if (value_x_radiobtn.rad_oldvalue->GetValue()) // using old value comparison
|
||||
{
|
||||
for (; i!=e; ++i)
|
||||
{
|
||||
@@ -442,7 +442,7 @@ void CheatSearchTab::FilterCheatSearchResults(wxCommandEvent&)
|
||||
}
|
||||
}
|
||||
}
|
||||
else // using user entered x value comparison
|
||||
else // using user entered x value comparison
|
||||
{
|
||||
u32 user_x_val;
|
||||
|
||||
@@ -638,7 +638,7 @@ void CreateCodeDialog::PressOK(wxCommandEvent& ev)
|
||||
arCodes.push_back(new_cheat);
|
||||
// save the gameini
|
||||
isoprops.SaveGameConfig();
|
||||
isoprops.ActionReplayList_Load(); // loads the new arcodes
|
||||
isoprops.ActionReplayList_Load(); // loads the new arcodes
|
||||
//ActionReplay::UpdateActiveList();
|
||||
}
|
||||
|
||||
|
||||
@@ -60,13 +60,13 @@ protected:
|
||||
u32 old_value;
|
||||
};
|
||||
|
||||
std::vector<CheatSearchResult> search_results;
|
||||
std::vector<CheatSearchResult> search_results;
|
||||
unsigned int search_type_size;
|
||||
|
||||
wxChoice* search_type;
|
||||
wxListBox* lbox_search_results;
|
||||
wxListBox* lbox_search_results;
|
||||
wxStaticText* label_results_count;
|
||||
wxTextCtrl* textctrl_value_x;
|
||||
wxTextCtrl* textctrl_value_x;
|
||||
wxButton *btnInitScan, *btnNextScan;
|
||||
|
||||
struct
|
||||
|
||||
@@ -84,23 +84,23 @@ static const wxLanguage langIds[] =
|
||||
};
|
||||
|
||||
// Strings for Device Selections
|
||||
#define DEV_NONE_STR _trans("<Nothing>")
|
||||
#define DEV_DUMMY_STR _trans("Dummy")
|
||||
#define DEV_NONE_STR _trans("<Nothing>")
|
||||
#define DEV_DUMMY_STR _trans("Dummy")
|
||||
|
||||
#define SIDEV_STDCONT_STR _trans("Standard Controller")
|
||||
#define SIDEV_STEERING_STR _trans("Steering Wheel")
|
||||
#define SIDEV_DANCEMAT_STR _trans("Dance Mat")
|
||||
#define SIDEV_BONGO_STR _trans("TaruKonga (Bongos)")
|
||||
#define SIDEV_GBA_STR "GBA"
|
||||
#define SIDEV_AM_BB_STR _trans("AM-Baseboard")
|
||||
#define SIDEV_STDCONT_STR _trans("Standard Controller")
|
||||
#define SIDEV_STEERING_STR _trans("Steering Wheel")
|
||||
#define SIDEV_DANCEMAT_STR _trans("Dance Mat")
|
||||
#define SIDEV_BONGO_STR _trans("TaruKonga (Bongos)")
|
||||
#define SIDEV_GBA_STR "GBA"
|
||||
#define SIDEV_AM_BB_STR _trans("AM-Baseboard")
|
||||
|
||||
#define EXIDEV_MEMCARD_STR _trans("Memory Card")
|
||||
#define EXIDEV_MIC_STR _trans("Mic")
|
||||
#define EXIDEV_BBA_STR "BBA"
|
||||
#define EXIDEV_AM_BB_STR _trans("AM-Baseboard")
|
||||
#define EXIDEV_GECKO_STR "USBGecko"
|
||||
#define EXIDEV_MEMCARD_STR _trans("Memory Card")
|
||||
#define EXIDEV_MIC_STR _trans("Mic")
|
||||
#define EXIDEV_BBA_STR "BBA"
|
||||
#define EXIDEV_AM_BB_STR _trans("AM-Baseboard")
|
||||
#define EXIDEV_GECKO_STR "USBGecko"
|
||||
|
||||
#define WXSTR_TRANS(a) wxString(wxGetTranslation(wxT(a)))
|
||||
#define WXSTR_TRANS(a) wxString(wxGetTranslation(wxT(a)))
|
||||
#ifdef WIN32
|
||||
//only used with xgettext to be picked up as translatable string.
|
||||
//win32 does not have wx on its path, the provided wxALL_FILES
|
||||
@@ -246,7 +246,7 @@ void CConfigMain::InitializeGUILists()
|
||||
arrayStringFor_Framelimit.Add(_("Off"));
|
||||
arrayStringFor_Framelimit.Add(_("Auto"));
|
||||
arrayStringFor_Framelimit.Add(_("Audio"));
|
||||
for (int i = 10; i <= 120; i += 5) // from 10 to 120
|
||||
for (int i = 10; i <= 120; i += 5) // from 10 to 120
|
||||
arrayStringFor_Framelimit.Add(wxString::Format(wxT("%i"), i));
|
||||
|
||||
// Emulator Engine
|
||||
@@ -1090,7 +1090,7 @@ void CConfigMain::ChooseMemcardPath(std::string& strMemcard, bool isSlotA)
|
||||
ExpansionInterface::ChangeDevice(
|
||||
isSlotA ? 0 : 1, // SlotA: channel 0, SlotB channel 1
|
||||
EXIDEVICE_MEMORYCARD,
|
||||
0); // SP1 is device 2, slots are device 0
|
||||
0); // SP1 is device 2, slots are device 0
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1159,9 +1159,9 @@ void CConfigMain::ChooseEXIDevice(wxString deviceName, int deviceNum)
|
||||
{
|
||||
// Change plugged device! :D
|
||||
ExpansionInterface::ChangeDevice(
|
||||
(deviceNum == 1) ? 1 : 0, // SlotB is on channel 1, slotA and SP1 are on 0
|
||||
tempType, // The device enum to change to
|
||||
(deviceNum == 2) ? 2 : 0); // SP1 is device 2, slots are device 0
|
||||
(deviceNum == 1) ? 1 : 0, // SlotB is on channel 1, slotA and SP1 are on 0
|
||||
tempType, // The device enum to change to
|
||||
(deviceNum == 2) ? 2 : 0); // SP1 is device 2, slots are device 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1311,7 +1311,7 @@ inline u8 CConfigMain::GetSADRCountryCode(int language)
|
||||
case 1: //English
|
||||
countrycode = 49; // United States
|
||||
break;
|
||||
case 2: //German
|
||||
case 2: //German
|
||||
countrycode = 78; //Germany
|
||||
break;
|
||||
case 3: //French
|
||||
@@ -1323,7 +1323,7 @@ inline u8 CConfigMain::GetSADRCountryCode(int language)
|
||||
case 5: //Italian
|
||||
countrycode = 83; //Italy
|
||||
break;
|
||||
case 6: //Dutch
|
||||
case 6: //Dutch
|
||||
countrycode = 94; //Netherlands
|
||||
break;
|
||||
case 7: //Simplified Chinese
|
||||
|
||||
@@ -135,13 +135,13 @@ private:
|
||||
// Audio
|
||||
wxBoxSizer* sAudioPage; // GC settings
|
||||
wxRadioBox* DSPEngine;
|
||||
wxSlider* VolumeSlider;
|
||||
wxSlider* VolumeSlider;
|
||||
wxStaticText* VolumeText;
|
||||
wxCheckBox* DumpAudio;
|
||||
wxCheckBox* DPL2Decoder;
|
||||
wxCheckBox* DumpAudio;
|
||||
wxCheckBox* DPL2Decoder;
|
||||
wxArrayString wxArrayBackends;
|
||||
wxChoice* BackendSelection;
|
||||
wxSpinCtrl* Latency;
|
||||
wxChoice* BackendSelection;
|
||||
wxSpinCtrl* Latency;
|
||||
|
||||
// Interface
|
||||
wxCheckBox* ConfirmStop;
|
||||
|
||||
@@ -26,12 +26,9 @@ public:
|
||||
{
|
||||
SetToolBitmapSize(wxSize(24, 24));
|
||||
|
||||
m_Bitmaps[Toolbar_Delete] =
|
||||
wxBitmap(wxGetBitmapFromMemory(toolbar_delete_png).ConvertToImage().Rescale(24, 24));
|
||||
m_Bitmaps[Toolbar_Add_BP] =
|
||||
wxBitmap(wxGetBitmapFromMemory(toolbar_add_breakpoint_png).ConvertToImage().Rescale(24, 24));
|
||||
m_Bitmaps[Toolbar_Add_MC] =
|
||||
wxBitmap(wxGetBitmapFromMemory(toolbar_add_memcheck_png).ConvertToImage().Rescale(24, 24));
|
||||
m_Bitmaps[Toolbar_Delete] = wxBitmap(wxGetBitmapFromMemory(toolbar_delete_png).ConvertToImage().Rescale(24, 24));
|
||||
m_Bitmaps[Toolbar_Add_BP] = wxBitmap(wxGetBitmapFromMemory(toolbar_add_breakpoint_png).ConvertToImage().Rescale(24, 24));
|
||||
m_Bitmaps[Toolbar_Add_MC] = wxBitmap(wxGetBitmapFromMemory(toolbar_add_memcheck_png).ConvertToImage().Rescale(24, 24));
|
||||
|
||||
AddTool(ID_DELETE, wxT("Delete"), m_Bitmaps[Toolbar_Delete]);
|
||||
Bind(wxEVT_COMMAND_TOOL_CLICKED, &CBreakPointWindow::OnDelete, parent, ID_DELETE);
|
||||
@@ -85,8 +82,8 @@ BEGIN_EVENT_TABLE(CBreakPointWindow, wxPanel)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
CBreakPointWindow::CBreakPointWindow(CCodeWindow* _pCodeWindow, wxWindow* parent,
|
||||
wxWindowID id, const wxString& title, const wxPoint& position,
|
||||
const wxSize& size, long style)
|
||||
wxWindowID id, const wxString& title, const wxPoint& position,
|
||||
const wxSize& size, long style)
|
||||
: wxPanel(parent, id, position, size, style, title)
|
||||
, m_pCodeWindow(_pCodeWindow)
|
||||
{
|
||||
|
||||
@@ -59,12 +59,12 @@ BEGIN_EVENT_TABLE(CCodeWindow, wxPanel)
|
||||
EVT_TEXT(IDM_ADDRBOX, CCodeWindow::OnAddrBoxChange)
|
||||
|
||||
// Other
|
||||
EVT_LISTBOX(ID_SYMBOLLIST, CCodeWindow::OnSymbolListChange)
|
||||
EVT_LISTBOX(ID_CALLSTACKLIST, CCodeWindow::OnCallstackListChange)
|
||||
EVT_LISTBOX(ID_CALLERSLIST, CCodeWindow::OnCallersListChange)
|
||||
EVT_LISTBOX(ID_CALLSLIST, CCodeWindow::OnCallsListChange)
|
||||
EVT_LISTBOX(ID_SYMBOLLIST, CCodeWindow::OnSymbolListChange)
|
||||
EVT_LISTBOX(ID_CALLSTACKLIST, CCodeWindow::OnCallstackListChange)
|
||||
EVT_LISTBOX(ID_CALLERSLIST, CCodeWindow::OnCallersListChange)
|
||||
EVT_LISTBOX(ID_CALLSLIST, CCodeWindow::OnCallsListChange)
|
||||
|
||||
EVT_HOST_COMMAND(wxID_ANY, CCodeWindow::OnHostMessage)
|
||||
EVT_HOST_COMMAND(wxID_ANY, CCodeWindow::OnHostMessage)
|
||||
|
||||
END_EVENT_TABLE()
|
||||
|
||||
@@ -562,12 +562,12 @@ void CCodeWindow::PopulateToolbar(wxAuiToolBar* toolBar)
|
||||
h = m_Bitmaps[0].GetHeight();
|
||||
|
||||
toolBar->SetToolBitmapSize(wxSize(w, h));
|
||||
toolBar->AddTool(IDM_STEP, _("Step"), m_Bitmaps[Toolbar_Step]);
|
||||
toolBar->AddTool(IDM_STEPOVER, _("Step Over"), m_Bitmaps[Toolbar_StepOver]);
|
||||
toolBar->AddTool(IDM_SKIP, _("Skip"), m_Bitmaps[Toolbar_Skip]);
|
||||
toolBar->AddTool(IDM_STEP, _("Step"), m_Bitmaps[Toolbar_Step]);
|
||||
toolBar->AddTool(IDM_STEPOVER, _("Step Over"), m_Bitmaps[Toolbar_StepOver]);
|
||||
toolBar->AddTool(IDM_SKIP, _("Skip"), m_Bitmaps[Toolbar_Skip]);
|
||||
toolBar->AddSeparator();
|
||||
toolBar->AddTool(IDM_GOTOPC, _("Show PC"), m_Bitmaps[Toolbar_GotoPC]);
|
||||
toolBar->AddTool(IDM_SETPC, _("Set PC"), m_Bitmaps[Toolbar_SetPC]);
|
||||
toolBar->AddTool(IDM_GOTOPC, _("Show PC"), m_Bitmaps[Toolbar_GotoPC]);
|
||||
toolBar->AddTool(IDM_SETPC, _("Set PC"), m_Bitmaps[Toolbar_SetPC]);
|
||||
toolBar->AddSeparator();
|
||||
toolBar->AddControl(new wxTextCtrl(toolBar, IDM_ADDRBOX, _T("")));
|
||||
|
||||
|
||||
@@ -57,8 +57,7 @@ class CCodeWindow
|
||||
|
||||
void Update();
|
||||
void NotifyMapLoaded();
|
||||
void CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter,
|
||||
wxMenuBar *pMenuBar);
|
||||
void CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter, wxMenuBar *pMenuBar);
|
||||
void CreateMenuOptions(wxMenu *pMenu);
|
||||
void CreateMenuSymbols(wxMenuBar *pMenuBar);
|
||||
void RecreateToolbar(wxAuiToolBar*);
|
||||
|
||||
@@ -94,8 +94,7 @@ void CCodeWindow::Save()
|
||||
IniFile ini;
|
||||
ini.Load(File::GetUserPath(F_DEBUGGERCONFIG_IDX));
|
||||
|
||||
ini.Set("General", "DebuggerFont",
|
||||
WxStrToStr(DebuggerFont.GetNativeFontInfoUserDesc()));
|
||||
ini.Set("General", "DebuggerFont", WxStrToStr(DebuggerFont.GetNativeFontInfoUserDesc()));
|
||||
|
||||
// Boot to pause or not
|
||||
ini.Set("General", "AutomaticStart", GetMenuBar()->IsChecked(IDM_AUTOMATICSTART));
|
||||
@@ -352,7 +351,7 @@ void CCodeWindow::NotifyMapLoaded()
|
||||
|
||||
g_symbolDB.FillInCallers();
|
||||
//symbols->Show(false); // hide it for faster filling
|
||||
symbols->Freeze(); // HyperIris: wx style fast filling
|
||||
symbols->Freeze(); // HyperIris: wx style fast filling
|
||||
symbols->Clear();
|
||||
for (const auto& symbol : g_symbolDB.Symbols())
|
||||
{
|
||||
@@ -426,8 +425,8 @@ void CCodeWindow::ToggleCodeWindow(bool bShow)
|
||||
{
|
||||
if (bShow)
|
||||
Parent->DoAddPage(this,
|
||||
iNbAffiliation[IDM_CODEWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_CODEWINDOW - IDM_LOGWINDOW]);
|
||||
iNbAffiliation[IDM_CODEWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_CODEWINDOW - IDM_LOGWINDOW]);
|
||||
else // Hide
|
||||
Parent->DoRemovePage(this);
|
||||
}
|
||||
@@ -438,10 +437,10 @@ void CCodeWindow::ToggleRegisterWindow(bool bShow)
|
||||
if (bShow)
|
||||
{
|
||||
if (!m_RegisterWindow)
|
||||
m_RegisterWindow = new CRegisterWindow(Parent, IDM_REGISTERWINDOW);
|
||||
m_RegisterWindow = new CRegisterWindow(Parent, IDM_REGISTERWINDOW);
|
||||
Parent->DoAddPage(m_RegisterWindow,
|
||||
iNbAffiliation[IDM_REGISTERWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_REGISTERWINDOW - IDM_LOGWINDOW]);
|
||||
iNbAffiliation[IDM_REGISTERWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_REGISTERWINDOW - IDM_LOGWINDOW]);
|
||||
}
|
||||
else // Close
|
||||
{
|
||||
@@ -456,10 +455,10 @@ void CCodeWindow::ToggleBreakPointWindow(bool bShow)
|
||||
if (bShow)
|
||||
{
|
||||
if (!m_BreakpointWindow)
|
||||
m_BreakpointWindow = new CBreakPointWindow(this, Parent, IDM_BREAKPOINTWINDOW);
|
||||
m_BreakpointWindow = new CBreakPointWindow(this, Parent, IDM_BREAKPOINTWINDOW);
|
||||
Parent->DoAddPage(m_BreakpointWindow,
|
||||
iNbAffiliation[IDM_BREAKPOINTWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_BREAKPOINTWINDOW - IDM_LOGWINDOW]);
|
||||
iNbAffiliation[IDM_BREAKPOINTWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_BREAKPOINTWINDOW - IDM_LOGWINDOW]);
|
||||
}
|
||||
else // Close
|
||||
{
|
||||
@@ -474,10 +473,10 @@ void CCodeWindow::ToggleMemoryWindow(bool bShow)
|
||||
if (bShow)
|
||||
{
|
||||
if (!m_MemoryWindow)
|
||||
m_MemoryWindow = new CMemoryWindow(Parent, IDM_MEMORYWINDOW);
|
||||
m_MemoryWindow = new CMemoryWindow(Parent, IDM_MEMORYWINDOW);
|
||||
Parent->DoAddPage(m_MemoryWindow,
|
||||
iNbAffiliation[IDM_MEMORYWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_MEMORYWINDOW - IDM_LOGWINDOW]);
|
||||
iNbAffiliation[IDM_MEMORYWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_MEMORYWINDOW - IDM_LOGWINDOW]);
|
||||
}
|
||||
else // Close
|
||||
{
|
||||
@@ -492,10 +491,10 @@ void CCodeWindow::ToggleJitWindow(bool bShow)
|
||||
if (bShow)
|
||||
{
|
||||
if (!m_JitWindow)
|
||||
m_JitWindow = new CJitWindow(Parent, IDM_JITWINDOW);
|
||||
m_JitWindow = new CJitWindow(Parent, IDM_JITWINDOW);
|
||||
Parent->DoAddPage(m_JitWindow,
|
||||
iNbAffiliation[IDM_JITWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_JITWINDOW - IDM_LOGWINDOW]);
|
||||
iNbAffiliation[IDM_JITWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_JITWINDOW - IDM_LOGWINDOW]);
|
||||
}
|
||||
else // Close
|
||||
{
|
||||
@@ -511,10 +510,10 @@ void CCodeWindow::ToggleSoundWindow(bool bShow)
|
||||
if (bShow)
|
||||
{
|
||||
if (!m_SoundWindow)
|
||||
m_SoundWindow = new DSPDebuggerLLE(Parent, IDM_SOUNDWINDOW);
|
||||
m_SoundWindow = new DSPDebuggerLLE(Parent, IDM_SOUNDWINDOW);
|
||||
Parent->DoAddPage(m_SoundWindow,
|
||||
iNbAffiliation[IDM_SOUNDWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_SOUNDWINDOW - IDM_LOGWINDOW]);
|
||||
iNbAffiliation[IDM_SOUNDWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_SOUNDWINDOW - IDM_LOGWINDOW]);
|
||||
}
|
||||
else // Close
|
||||
{
|
||||
@@ -529,10 +528,10 @@ void CCodeWindow::ToggleVideoWindow(bool bShow)
|
||||
if (bShow)
|
||||
{
|
||||
if (!m_VideoWindow)
|
||||
m_VideoWindow = new GFXDebuggerPanel(Parent, IDM_VIDEOWINDOW);
|
||||
m_VideoWindow = new GFXDebuggerPanel(Parent, IDM_VIDEOWINDOW);
|
||||
Parent->DoAddPage(m_VideoWindow,
|
||||
iNbAffiliation[IDM_VIDEOWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_VIDEOWINDOW - IDM_LOGWINDOW]);
|
||||
iNbAffiliation[IDM_VIDEOWINDOW - IDM_LOGWINDOW],
|
||||
Parent->bFloatWindow[IDM_VIDEOWINDOW - IDM_LOGWINDOW]);
|
||||
}
|
||||
else // Close
|
||||
{
|
||||
|
||||
@@ -203,7 +203,7 @@ void DSPDebuggerLLE::UpdateSymbolMap()
|
||||
if (g_dsp.dram == NULL)
|
||||
return;
|
||||
|
||||
m_SymbolList->Freeze(); // HyperIris: wx style fast filling
|
||||
m_SymbolList->Freeze(); // HyperIris: wx style fast filling
|
||||
m_SymbolList->Clear();
|
||||
for (const auto& symbol : DSPSymbols::g_dsp_symbol_db.Symbols())
|
||||
{
|
||||
|
||||
@@ -104,26 +104,26 @@ static PauseEventMap* pauseEventMap;
|
||||
void GFXDebuggerPanel::CreateGUIControls()
|
||||
{
|
||||
static PauseEventMap map[] = {
|
||||
{NEXT_FRAME, _("Frame")},
|
||||
{NEXT_FLUSH, _("Flush")},
|
||||
{NEXT_FRAME, _("Frame")},
|
||||
{NEXT_FLUSH, _("Flush")},
|
||||
|
||||
{NEXT_PIXEL_SHADER_CHANGE, _("Pixel Shader")},
|
||||
{NEXT_VERTEX_SHADER_CHANGE, _("Vertex Shader")},
|
||||
{NEXT_TEXTURE_CHANGE, _("Texture")},
|
||||
{NEXT_NEW_TEXTURE, _("New Texture")},
|
||||
{NEXT_PIXEL_SHADER_CHANGE, _("Pixel Shader")},
|
||||
{NEXT_VERTEX_SHADER_CHANGE, _("Vertex Shader")},
|
||||
{NEXT_TEXTURE_CHANGE, _("Texture")},
|
||||
{NEXT_NEW_TEXTURE, _("New Texture")},
|
||||
|
||||
{NEXT_XFB_CMD, _("XFB Cmd")},
|
||||
{NEXT_EFB_CMD, _("EFB Cmd")},
|
||||
{NEXT_XFB_CMD, _("XFB Cmd")},
|
||||
{NEXT_EFB_CMD, _("EFB Cmd")},
|
||||
|
||||
{NEXT_MATRIX_CMD, _("Matrix Cmd")},
|
||||
{NEXT_VERTEX_CMD, _("Vertex Cmd")},
|
||||
{NEXT_TEXTURE_CMD, _("Texture Cmd")},
|
||||
{NEXT_LIGHT_CMD, _("Light Cmd")},
|
||||
{NEXT_FOG_CMD, _("Fog Cmd")},
|
||||
{NEXT_MATRIX_CMD, _("Matrix Cmd")},
|
||||
{NEXT_VERTEX_CMD, _("Vertex Cmd")},
|
||||
{NEXT_TEXTURE_CMD, _("Texture Cmd")},
|
||||
{NEXT_LIGHT_CMD, _("Light Cmd")},
|
||||
{NEXT_FOG_CMD, _("Fog Cmd")},
|
||||
|
||||
{NEXT_SET_TLUT, _("TLUT Cmd")},
|
||||
{NEXT_SET_TLUT, _("TLUT Cmd")},
|
||||
|
||||
{NEXT_ERROR, _("Error")}
|
||||
{NEXT_ERROR, _("Error")}
|
||||
};
|
||||
pauseEventMap = map;
|
||||
const int numPauseEventMap = sizeof(map)/sizeof(PauseEventMap);
|
||||
|
||||
@@ -37,21 +37,21 @@ public:
|
||||
private:
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
wxPanel *m_MainPanel;
|
||||
wxPanel* m_MainPanel;
|
||||
|
||||
wxButton *m_pButtonPause;
|
||||
wxButton *m_pButtonPauseAtNext;
|
||||
wxButton *m_pButtonPauseAtNextFrame;
|
||||
wxButton *m_pButtonCont;
|
||||
wxChoice *m_pPauseAtList;
|
||||
wxButton *m_pButtonDump;
|
||||
wxChoice *m_pDumpList;
|
||||
wxButton *m_pButtonUpdateScreen;
|
||||
wxButton *m_pButtonClearScreen;
|
||||
wxButton *m_pButtonClearTextureCache;
|
||||
wxButton *m_pButtonClearVertexShaderCache;
|
||||
wxButton *m_pButtonClearPixelShaderCache;
|
||||
wxTextCtrl *m_pCount;
|
||||
wxButton* m_pButtonPause;
|
||||
wxButton* m_pButtonPauseAtNext;
|
||||
wxButton* m_pButtonPauseAtNextFrame;
|
||||
wxButton* m_pButtonCont;
|
||||
wxChoice* m_pPauseAtList;
|
||||
wxButton* m_pButtonDump;
|
||||
wxChoice* m_pDumpList;
|
||||
wxButton* m_pButtonUpdateScreen;
|
||||
wxButton* m_pButtonClearScreen;
|
||||
wxButton* m_pButtonClearTextureCache;
|
||||
wxButton* m_pButtonClearVertexShaderCache;
|
||||
wxButton* m_pButtonClearPixelShaderCache;
|
||||
wxTextCtrl* m_pCount;
|
||||
|
||||
|
||||
// TODO: Prefix with GFX_
|
||||
|
||||
@@ -59,11 +59,11 @@ CJitWindow::CJitWindow(wxWindow* parent, wxWindowID id, const wxPoint& pos,
|
||||
wxLC_REPORT | wxSUNKEN_BORDER | wxLC_ALIGN_LEFT | wxLC_SINGLE_SEL | wxLC_SORT_ASCENDING),
|
||||
0, wxEXPAND);
|
||||
sizerBig->Add(sizerSplit, 2, wxEXPAND);
|
||||
// sizerBig->Add(memview, 5, wxEXPAND);
|
||||
// sizerBig->Add(sizerRight, 0, wxEXPAND | wxALL, 3);
|
||||
// sizerBig->Add(memview, 5, wxEXPAND);
|
||||
// sizerBig->Add(sizerRight, 0, wxEXPAND | wxALL, 3);
|
||||
sizerBig->Add(button_refresh = new wxButton(this, IDM_REFRESH_LIST, _("&Refresh")));
|
||||
// sizerRight->Add(addrbox = new wxTextCtrl(this, IDM_ADDRBOX, _T("")));
|
||||
// sizerRight->Add(new wxButton(this, IDM_SETPC, _("S&et PC")));
|
||||
// sizerRight->Add(addrbox = new wxTextCtrl(this, IDM_ADDRBOX, _T("")));
|
||||
// sizerRight->Add(new wxButton(this, IDM_SETPC, _("S&et PC")));
|
||||
|
||||
SetSizer(sizerBig);
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@ public:
|
||||
curAddress = addr;
|
||||
Refresh();
|
||||
}
|
||||
int dataType; // u8,u16,u32
|
||||
int curAddress; // Will be accessed by parent
|
||||
int dataType; // u8,u16,u32
|
||||
int curAddress; // Will be accessed by parent
|
||||
|
||||
private:
|
||||
int YToAddress(int y);
|
||||
|
||||
@@ -44,19 +44,19 @@ enum
|
||||
};
|
||||
|
||||
BEGIN_EVENT_TABLE(CMemoryWindow, wxPanel)
|
||||
EVT_TEXT(IDM_MEM_ADDRBOX, CMemoryWindow::OnAddrBoxChange)
|
||||
EVT_LISTBOX(IDM_SYMBOLLIST, CMemoryWindow::OnSymbolListChange)
|
||||
EVT_HOST_COMMAND(wxID_ANY, CMemoryWindow::OnHostMessage)
|
||||
EVT_BUTTON(IDM_SETVALBUTTON, CMemoryWindow::SetMemoryValue)
|
||||
EVT_BUTTON(IDM_DUMP_MEMORY, CMemoryWindow::OnDumpMemory)
|
||||
EVT_BUTTON(IDM_DUMP_MEM2, CMemoryWindow::OnDumpMem2)
|
||||
EVT_BUTTON(IDM_DUMP_FAKEVMEM, CMemoryWindow::OnDumpFakeVMEM)
|
||||
EVT_CHECKBOX(IDM_U8, CMemoryWindow::U8)
|
||||
EVT_CHECKBOX(IDM_U16, CMemoryWindow::U16)
|
||||
EVT_CHECKBOX(IDM_U32, CMemoryWindow::U32)
|
||||
EVT_BUTTON(IDM_SEARCH, CMemoryWindow::onSearch)
|
||||
EVT_CHECKBOX(IDM_ASCII, CMemoryWindow::onAscii)
|
||||
EVT_CHECKBOX(IDM_HEX, CMemoryWindow::onHex)
|
||||
EVT_TEXT(IDM_MEM_ADDRBOX, CMemoryWindow::OnAddrBoxChange)
|
||||
EVT_LISTBOX(IDM_SYMBOLLIST, CMemoryWindow::OnSymbolListChange)
|
||||
EVT_HOST_COMMAND(wxID_ANY, CMemoryWindow::OnHostMessage)
|
||||
EVT_BUTTON(IDM_SETVALBUTTON, CMemoryWindow::SetMemoryValue)
|
||||
EVT_BUTTON(IDM_DUMP_MEMORY, CMemoryWindow::OnDumpMemory)
|
||||
EVT_BUTTON(IDM_DUMP_MEM2, CMemoryWindow::OnDumpMem2)
|
||||
EVT_BUTTON(IDM_DUMP_FAKEVMEM, CMemoryWindow::OnDumpFakeVMEM)
|
||||
EVT_CHECKBOX(IDM_U8, CMemoryWindow::U8)
|
||||
EVT_CHECKBOX(IDM_U16, CMemoryWindow::U16)
|
||||
EVT_CHECKBOX(IDM_U32, CMemoryWindow::U32)
|
||||
EVT_BUTTON(IDM_SEARCH, CMemoryWindow::onSearch)
|
||||
EVT_CHECKBOX(IDM_ASCII, CMemoryWindow::onAscii)
|
||||
EVT_CHECKBOX(IDM_HEX, CMemoryWindow::onHex)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
CMemoryWindow::CMemoryWindow(wxWindow* parent, wxWindowID id,
|
||||
@@ -71,7 +71,7 @@ CMemoryWindow::CMemoryWindow(wxWindow* parent, wxWindowID id,
|
||||
DebugInterface* di = &PowerPC::debug_interface;
|
||||
|
||||
//symbols = new wxListBox(this, IDM_SYMBOLLIST, wxDefaultPosition,
|
||||
// wxSize(20, 100), 0, NULL, wxLB_SORT);
|
||||
// wxSize(20, 100), 0, NULL, wxLB_SORT);
|
||||
//sizerLeft->Add(symbols, 1, wxEXPAND);
|
||||
memview = new CMemoryView(di, this);
|
||||
memview->dataType = 0;
|
||||
|
||||
@@ -57,7 +57,7 @@ wxString CRegTable::GetValue(int row, int col)
|
||||
{
|
||||
switch (col)
|
||||
{
|
||||
case 0: return StrToWxStr(special_reg_names[row - 32]);
|
||||
case 0: return StrToWxStr(special_reg_names[row - 32]);
|
||||
case 1: return wxString::Format(wxT("%08x"), GetSpecialRegValue(row - 32));
|
||||
default: return wxEmptyString;
|
||||
}
|
||||
@@ -79,9 +79,9 @@ static void SetSpecialRegValue(int reg, u32 value)
|
||||
case 6: PowerPC::ppcState.spr[SPR_SRR0] = value; break;
|
||||
case 7: PowerPC::ppcState.spr[SPR_SRR1] = value; break;
|
||||
case 8: PowerPC::ppcState.Exceptions = value; break;
|
||||
// Should we just change the value, or use ProcessorInterface::SetInterrupt() to make the system aware?
|
||||
// case 9: return ProcessorInterface::GetMask();
|
||||
// case 10: return ProcessorInterface::GetCause();
|
||||
// Should we just change the value, or use ProcessorInterface::SetInterrupt() to make the system aware?
|
||||
// case 9: return ProcessorInterface::GetMask();
|
||||
// case 10: return ProcessorInterface::GetCause();
|
||||
default: return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ CPanel::CPanel(
|
||||
#endif
|
||||
|
||||
CRenderFrame::CRenderFrame(wxFrame* parent, wxWindowID id, const wxString& title,
|
||||
const wxPoint& pos, const wxSize& size, long style)
|
||||
const wxPoint& pos, const wxSize& size, long style)
|
||||
: wxFrame(parent, id, title, pos, size, style)
|
||||
{
|
||||
// Give it an icon
|
||||
@@ -707,12 +707,12 @@ void CFrame::OnGameListCtrl_ItemActivated(wxListEvent& WXUNUSED (event))
|
||||
SConfig::GetInstance().m_ListTaiwan &&
|
||||
SConfig::GetInstance().m_ListUnknown)))
|
||||
{
|
||||
SConfig::GetInstance().m_ListGC = SConfig::GetInstance().m_ListWii =
|
||||
SConfig::GetInstance().m_ListWad = SConfig::GetInstance().m_ListJap =
|
||||
SConfig::GetInstance().m_ListUsa = SConfig::GetInstance().m_ListPal =
|
||||
SConfig::GetInstance().m_ListFrance = SConfig::GetInstance().m_ListItaly =
|
||||
SConfig::GetInstance().m_ListKorea = SConfig::GetInstance().m_ListTaiwan =
|
||||
SConfig::GetInstance().m_ListUnknown= true;
|
||||
SConfig::GetInstance().m_ListGC = SConfig::GetInstance().m_ListWii =
|
||||
SConfig::GetInstance().m_ListWad = SConfig::GetInstance().m_ListJap =
|
||||
SConfig::GetInstance().m_ListUsa = SConfig::GetInstance().m_ListPal =
|
||||
SConfig::GetInstance().m_ListFrance = SConfig::GetInstance().m_ListItaly =
|
||||
SConfig::GetInstance().m_ListKorea = SConfig::GetInstance().m_ListTaiwan =
|
||||
SConfig::GetInstance().m_ListUnknown = true;
|
||||
|
||||
GetMenuBar()->FindItem(IDM_LISTGC)->Check(true);
|
||||
GetMenuBar()->FindItem(IDM_LISTWII)->Check(true);
|
||||
|
||||
@@ -475,8 +475,8 @@ void CFrame::PopulateToolbarAui(wxAuiToolBar* ToolBar)
|
||||
h = m_Bitmaps[Toolbar_FileOpen].GetHeight();
|
||||
ToolBar->SetToolBitmapSize(wxSize(w, h));
|
||||
|
||||
ToolBar->AddTool(IDM_SAVE_PERSPECTIVE, _("Save"), g_pCodeWindow->m_Bitmaps[Toolbar_GotoPC], _("Save current perspective"));
|
||||
ToolBar->AddTool(IDM_EDIT_PERSPECTIVES, _("Edit"), g_pCodeWindow->m_Bitmaps[Toolbar_GotoPC], _("Edit current perspective"));
|
||||
ToolBar->AddTool(IDM_SAVE_PERSPECTIVE, _("Save"), g_pCodeWindow->m_Bitmaps[Toolbar_GotoPC], _("Save current perspective"));
|
||||
ToolBar->AddTool(IDM_EDIT_PERSPECTIVES, _("Edit"), g_pCodeWindow->m_Bitmaps[Toolbar_GotoPC], _("Edit current perspective"));
|
||||
|
||||
ToolBar->SetToolDropDown(IDM_SAVE_PERSPECTIVE, true);
|
||||
ToolBar->SetToolDropDown(IDM_EDIT_PERSPECTIVES, true);
|
||||
@@ -574,7 +574,7 @@ void CFrame::BootGame(const std::string& filename)
|
||||
bootfile = m_GameListCtrl->GetSelectedISO()->GetFileName();
|
||||
}
|
||||
else if (!StartUp.m_strDefaultGCM.empty()
|
||||
&& wxFileExists(wxSafeConvertMB2WX(StartUp.m_strDefaultGCM.c_str())))
|
||||
&& wxFileExists(wxSafeConvertMB2WX(StartUp.m_strDefaultGCM.c_str())))
|
||||
{
|
||||
bootfile = StartUp.m_strDefaultGCM;
|
||||
}
|
||||
@@ -1185,7 +1185,7 @@ void CFrame::OnConfigPAD(wxCommandEvent& WXUNUSED (event))
|
||||
{
|
||||
InputPlugin *const pad_plugin = Pad::GetPlugin();
|
||||
bool was_init = false;
|
||||
if (g_controller_interface.IsInit()) // check if game is running
|
||||
if (g_controller_interface.IsInit()) // check if game is running
|
||||
{
|
||||
was_init = true;
|
||||
}
|
||||
@@ -1203,7 +1203,7 @@ void CFrame::OnConfigPAD(wxCommandEvent& WXUNUSED (event))
|
||||
InputConfigDialog m_ConfigFrame(this, *pad_plugin, _trans("Dolphin GCPad Configuration"));
|
||||
m_ConfigFrame.ShowModal();
|
||||
m_ConfigFrame.Destroy();
|
||||
if (!was_init) // if game isn't running
|
||||
if (!was_init) // if game isn't running
|
||||
{
|
||||
Pad::Shutdown();
|
||||
}
|
||||
@@ -1213,7 +1213,7 @@ void CFrame::OnConfigWiimote(wxCommandEvent& WXUNUSED (event))
|
||||
{
|
||||
InputPlugin *const wiimote_plugin = Wiimote::GetPlugin();
|
||||
bool was_init = false;
|
||||
if (g_controller_interface.IsInit()) // check if game is running
|
||||
if (g_controller_interface.IsInit()) // check if game is running
|
||||
{
|
||||
was_init = true;
|
||||
}
|
||||
@@ -1231,7 +1231,7 @@ void CFrame::OnConfigWiimote(wxCommandEvent& WXUNUSED (event))
|
||||
WiimoteConfigDiag m_ConfigFrame(this, *wiimote_plugin);
|
||||
m_ConfigFrame.ShowModal();
|
||||
m_ConfigFrame.Destroy();
|
||||
if (!was_init) // if game isn't running
|
||||
if (!was_init) // if game isn't running
|
||||
{
|
||||
Wiimote::Shutdown();
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ void cInterfaceAGL::Swap()
|
||||
}
|
||||
|
||||
// Create rendering window.
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
bool cInterfaceAGL::Create(void *&window_handle)
|
||||
{
|
||||
int _tx, _ty, _twidth, _theight;
|
||||
|
||||
@@ -58,7 +58,8 @@ void cInterfaceEGL::DetectMode()
|
||||
EGL_NONE };
|
||||
|
||||
// Get how many configs there are
|
||||
if (!eglChooseConfig( GLWin.egl_dpy, attribs, NULL, 0, &num_configs)) {
|
||||
if (!eglChooseConfig( GLWin.egl_dpy, attribs, NULL, 0, &num_configs))
|
||||
{
|
||||
INFO_LOG(VIDEO, "Error: couldn't get an EGL visual config\n");
|
||||
goto err_exit;
|
||||
}
|
||||
@@ -101,7 +102,7 @@ err_exit:
|
||||
}
|
||||
|
||||
// Create rendering window.
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
bool cInterfaceEGL::Create(void *&window_handle)
|
||||
{
|
||||
const char *s;
|
||||
@@ -112,14 +113,16 @@ bool cInterfaceEGL::Create(void *&window_handle)
|
||||
|
||||
GLWin.egl_dpy = Platform.EGLGetDisplay();
|
||||
|
||||
if (!GLWin.egl_dpy) {
|
||||
if (!GLWin.egl_dpy)
|
||||
{
|
||||
INFO_LOG(VIDEO, "Error: eglGetDisplay() failed\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
GLWin.platform = Platform.platform;
|
||||
|
||||
if (!eglInitialize(GLWin.egl_dpy, &egl_major, &egl_minor)) {
|
||||
if (!eglInitialize(GLWin.egl_dpy, &egl_major, &egl_minor))
|
||||
{
|
||||
INFO_LOG(VIDEO, "Error: eglInitialize() failed\n");
|
||||
return false;
|
||||
}
|
||||
@@ -147,7 +150,7 @@ bool cInterfaceEGL::Create(void *&window_handle)
|
||||
{
|
||||
case MODE_OPENGL:
|
||||
attribs[1] = EGL_OPENGL_BIT;
|
||||
ctx_attribs[0] = EGL_NONE;
|
||||
ctx_attribs[0] = EGL_NONE;
|
||||
break;
|
||||
case MODE_OPENGLES2:
|
||||
attribs[1] = EGL_OPENGL_ES2_BIT;
|
||||
@@ -163,7 +166,8 @@ bool cInterfaceEGL::Create(void *&window_handle)
|
||||
break;
|
||||
}
|
||||
|
||||
if (!eglChooseConfig( GLWin.egl_dpy, attribs, &config, 1, &num_configs)) {
|
||||
if (!eglChooseConfig( GLWin.egl_dpy, attribs, &config, 1, &num_configs))
|
||||
{
|
||||
INFO_LOG(VIDEO, "Error: couldn't get an EGL visual config\n");
|
||||
exit(1);
|
||||
}
|
||||
@@ -189,16 +193,17 @@ bool cInterfaceEGL::Create(void *&window_handle)
|
||||
INFO_LOG(VIDEO, "EGL_CLIENT_APIS = %s\n", s);
|
||||
|
||||
GLWin.egl_ctx = eglCreateContext(GLWin.egl_dpy, config, EGL_NO_CONTEXT, ctx_attribs );
|
||||
if (!GLWin.egl_ctx) {
|
||||
if (!GLWin.egl_ctx)
|
||||
{
|
||||
INFO_LOG(VIDEO, "Error: eglCreateContext failed\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
GLWin.native_window = Platform.CreateWindow();
|
||||
|
||||
GLWin.egl_surf = eglCreateWindowSurface(GLWin.egl_dpy, config,
|
||||
GLWin.native_window, NULL);
|
||||
if (!GLWin.egl_surf) {
|
||||
GLWin.egl_surf = eglCreateWindowSurface(GLWin.egl_dpy, config, GLWin.native_window, NULL);
|
||||
if (!GLWin.egl_surf)
|
||||
{
|
||||
INFO_LOG(VIDEO, "Error: eglCreateWindowSurface failed\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ void cInterfaceGLX::Swap()
|
||||
}
|
||||
|
||||
// Create rendering window.
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
bool cInterfaceGLX::Create(void *&window_handle)
|
||||
{
|
||||
int _tx, _ty, _twidth, _theight;
|
||||
|
||||
@@ -63,7 +63,7 @@ void cInterfaceWGL::UpdateFPSDisplay(const char *text)
|
||||
}
|
||||
|
||||
// Create rendering window.
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
|
||||
bool cInterfaceWGL::Create(void *&window_handle)
|
||||
{
|
||||
int _tx, _ty, _twidth, _theight;
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
#include <wayland-cursor.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
|
||||
#define MOD_SHIFT_MASK 0x01
|
||||
#define MOD_ALT_MASK 0x02
|
||||
#define MOD_CONTROL_MASK 0x04
|
||||
#define MOD_SHIFT_MASK 0x01
|
||||
#define MOD_ALT_MASK 0x02
|
||||
#define MOD_CONTROL_MASK 0x04
|
||||
|
||||
|
||||
class cWaylandInterface
|
||||
|
||||
@@ -50,7 +50,7 @@ bool sorted = false;
|
||||
extern CFrame* main_frame;
|
||||
|
||||
static int CompareGameListItems(const GameListItem* iso1, const GameListItem* iso2,
|
||||
long sortData = CGameListCtrl::COLUMN_TITLE)
|
||||
long sortData = CGameListCtrl::COLUMN_TITLE)
|
||||
{
|
||||
int t = 1;
|
||||
|
||||
@@ -70,8 +70,8 @@ static int CompareGameListItems(const GameListItem* iso1, const GameListItem* is
|
||||
{
|
||||
indexOne = SConfig::GetInstance().m_SYSCONF->GetData<u8>("IPL.LNG");
|
||||
}
|
||||
else
|
||||
{ // GC
|
||||
else // GC
|
||||
{
|
||||
indexOne = SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage;
|
||||
}
|
||||
|
||||
@@ -79,8 +79,8 @@ static int CompareGameListItems(const GameListItem* iso1, const GameListItem* is
|
||||
{
|
||||
indexOther = SConfig::GetInstance().m_SYSCONF->GetData<u8>("IPL.LNG");
|
||||
}
|
||||
else
|
||||
{ // GC
|
||||
else // GC
|
||||
{
|
||||
indexOther = SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage;
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ private:
|
||||
|
||||
void ClearIsoFiles()
|
||||
{
|
||||
while (!m_ISOFiles.empty()) // so lazy
|
||||
while (!m_ISOFiles.empty()) // so lazy
|
||||
{
|
||||
delete m_ISOFiles.back();
|
||||
m_ISOFiles.pop_back();
|
||||
|
||||
@@ -94,7 +94,7 @@ void CodeConfigPanel::LoadCodes(const IniFile& globalIni, const IniFile& localIn
|
||||
|
||||
void CodeConfigPanel::ToggleCode(wxCommandEvent& evt)
|
||||
{
|
||||
const int sel = evt.GetInt(); // this right?
|
||||
const int sel = evt.GetInt(); // this right?
|
||||
if (sel > -1)
|
||||
m_gcodes[sel].enabled = m_listbox_gcodes->IsChecked(sel);
|
||||
}
|
||||
@@ -115,7 +115,7 @@ void CodeConfigPanel::UpdateInfoBox(wxCommandEvent&)
|
||||
notes_end = m_gcodes[sel].notes.end();
|
||||
for (; notes_iter!=notes_end; ++notes_iter)
|
||||
m_infobox.textctrl_notes->AppendText(StrToWxStr(*notes_iter));
|
||||
m_infobox.textctrl_notes->ScrollLines(-99); // silly
|
||||
m_infobox.textctrl_notes->ScrollLines(-99); // silly
|
||||
|
||||
m_infobox.label_creator->SetLabel(wxGetTranslation(wxstr_creator) + StrToWxStr(m_gcodes[sel].creator));
|
||||
|
||||
@@ -134,11 +134,6 @@ void CodeConfigPanel::UpdateInfoBox(wxCommandEvent&)
|
||||
}
|
||||
}
|
||||
|
||||
//void CodeConfigPanel::ApplyChanges(wxCommandEvent&)
|
||||
//{
|
||||
// Gecko::SetActiveCodes(m_gcodes);
|
||||
//}
|
||||
|
||||
void CodeConfigPanel::DownloadCodes(wxCommandEvent&)
|
||||
{
|
||||
if (m_gameid.empty())
|
||||
@@ -170,7 +165,7 @@ void CodeConfigPanel::DownloadCodes(wxCommandEvent&)
|
||||
if (sf::Http::Response::Ok == resp.GetStatus())
|
||||
{
|
||||
// temp vector containing parsed codes
|
||||
std::vector<GeckoCode> gcodes;
|
||||
std::vector<GeckoCode> gcodes;
|
||||
|
||||
// parse the codes
|
||||
std::istringstream ss(resp.GetBody());
|
||||
@@ -184,7 +179,7 @@ void CodeConfigPanel::DownloadCodes(wxCommandEvent&)
|
||||
// eh w/e
|
||||
//std::getline(ss, line);
|
||||
//if (line != m_gameid)
|
||||
// PanicAlert("Bad code file.");
|
||||
// PanicAlert("Bad code file.");
|
||||
|
||||
// seek past the header, get to the first code
|
||||
std::getline(ss, line);
|
||||
@@ -197,7 +192,7 @@ void CodeConfigPanel::DownloadCodes(wxCommandEvent&)
|
||||
while ((std::getline(ss, line).good()))
|
||||
{
|
||||
// empty line
|
||||
if (0 == line.size() || line == "\r" || line == "\n") // \r\n checks might not be needed
|
||||
if (0 == line.size() || line == "\r" || line == "\n") // \r\n checks might not be needed
|
||||
{
|
||||
// add the code
|
||||
if (gcode.codes.size())
|
||||
@@ -241,7 +236,7 @@ void CodeConfigPanel::DownloadCodes(wxCommandEvent&)
|
||||
else
|
||||
{
|
||||
gcode.notes.push_back(line);
|
||||
read_state = 2; // start reading comments
|
||||
read_state = 2; // start reading comments
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -36,12 +36,12 @@ private:
|
||||
std::string m_gameid;
|
||||
|
||||
// wxwidgets stuff
|
||||
wxCheckListBox *m_listbox_gcodes;
|
||||
wxCheckListBox* m_listbox_gcodes;
|
||||
struct
|
||||
{
|
||||
wxStaticText *label_name, *label_notes, *label_creator;
|
||||
wxTextCtrl *textctrl_notes;
|
||||
wxListBox *listbox_codes;
|
||||
wxStaticText* label_name, *label_notes, *label_creator;
|
||||
wxTextCtrl* textctrl_notes;
|
||||
wxListBox* listbox_codes;
|
||||
} m_infobox;
|
||||
wxButton* btn_download;
|
||||
};
|
||||
|
||||
@@ -582,9 +582,9 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||
|
||||
// Filesystem icons
|
||||
wxImageList * const m_iconList = new wxImageList(16, 16);
|
||||
m_iconList->Add(wxBitmap(disc_xpm), wxNullBitmap); // 0
|
||||
m_iconList->Add(wxBitmap(folder_xpm), wxNullBitmap); // 1
|
||||
m_iconList->Add(wxBitmap(file_xpm), wxNullBitmap); // 2
|
||||
m_iconList->Add(wxBitmap(disc_xpm), wxNullBitmap); // 0
|
||||
m_iconList->Add(wxBitmap(folder_xpm), wxNullBitmap); // 1
|
||||
m_iconList->Add(wxBitmap(file_xpm), wxNullBitmap); // 2
|
||||
|
||||
// Filesystem tree
|
||||
m_Treectrl = new wxTreeCtrl(m_Filesystem, ID_TREECTRL,
|
||||
|
||||
@@ -118,7 +118,7 @@ ControlDialog::ControlDialog(GamepadPage* const parent, InputPlugin& plugin, Con
|
||||
szr->Add(d_szr, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5);
|
||||
szr->Add(control_chooser, 1, wxEXPAND|wxALL, 5);
|
||||
|
||||
SetSizerAndFit(szr); // needed
|
||||
SetSizerAndFit(szr); // needed
|
||||
|
||||
UpdateGUI();
|
||||
SetFocus();
|
||||
@@ -965,7 +965,7 @@ GamepadPage::GamepadPage(wxWindow* parent, InputPlugin& plugin, const unsigned i
|
||||
|
||||
UpdateGUI();
|
||||
|
||||
SetSizerAndFit(mapping); // needed
|
||||
SetSizerAndFit(mapping); // needed
|
||||
Layout();
|
||||
};
|
||||
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define SLIDER_TICK_COUNT 100
|
||||
#define DETECT_WAIT_TIME 1500
|
||||
#define PREVIEW_UPDATE_TIME 25
|
||||
#define SLIDER_TICK_COUNT 100
|
||||
#define DETECT_WAIT_TIME 1500
|
||||
#define PREVIEW_UPDATE_TIME 25
|
||||
|
||||
// might have to change this setup for wiimote
|
||||
#define PROFILES_PATH "Profiles/"
|
||||
#define PROFILES_PATH "Profiles/"
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/listbox.h>
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
virtual ~PadSetting() {}
|
||||
|
||||
wxControl* const wxcontrol;
|
||||
wxControl* const wxcontrol;
|
||||
};
|
||||
|
||||
class PadSettingExtension : public PadSetting
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
void UpdateGUI();
|
||||
void UpdateValue();
|
||||
|
||||
ControllerEmu::Extension* const extension;
|
||||
ControllerEmu::Extension* const extension;
|
||||
};
|
||||
|
||||
class PadSettingSpin : public PadSetting
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
PadSettingSpin(wxWindow* const parent, ControllerEmu::ControlGroup::Setting* const setting)
|
||||
: PadSetting(new wxSpinCtrl(parent, -1, wxEmptyString, wxDefaultPosition
|
||||
, wxSize(54, -1), 0, setting->low, setting->high, (int)(setting->value * 100)))
|
||||
, value(setting->value) {}
|
||||
, value(setting->value) {}
|
||||
|
||||
void UpdateGUI();
|
||||
void UpdateValue();
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
void UpdateGUI();
|
||||
void UpdateValue();
|
||||
|
||||
ControlState& value;
|
||||
ControlState& value;
|
||||
};
|
||||
|
||||
class GamepadPage;
|
||||
@@ -101,19 +101,19 @@ public:
|
||||
void SetSelectedControl(wxCommandEvent& event);
|
||||
void AppendControl(wxCommandEvent& event);
|
||||
|
||||
ControllerInterface::ControlReference* const control_reference;
|
||||
InputPlugin& m_plugin;
|
||||
wxComboBox* device_cbox;
|
||||
ControllerInterface::ControlReference* const control_reference;
|
||||
InputPlugin& m_plugin;
|
||||
wxComboBox* device_cbox;
|
||||
|
||||
wxTextCtrl* textctrl;
|
||||
wxListBox* control_lbox;
|
||||
wxSlider* range_slider;
|
||||
wxTextCtrl* textctrl;
|
||||
wxListBox* control_lbox;
|
||||
wxSlider* range_slider;
|
||||
|
||||
private:
|
||||
GamepadPage* const m_parent;
|
||||
wxStaticText* m_bound_label;
|
||||
wxStaticText* m_error_label;
|
||||
DeviceQualifier m_devq;
|
||||
GamepadPage* const m_parent;
|
||||
wxStaticText* m_bound_label;
|
||||
wxStaticText* m_error_label;
|
||||
DeviceQualifier m_devq;
|
||||
bool GetExpressionForSelectedControl(wxString &expr);
|
||||
};
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
: wxButton(parent, -1, _("Configure"), wxDefaultPosition)
|
||||
, extension(ext) {}
|
||||
|
||||
ControllerEmu::Extension* const extension;
|
||||
ControllerEmu::Extension* const extension;
|
||||
};
|
||||
|
||||
class ControlButton : public wxButton
|
||||
@@ -132,7 +132,7 @@ class ControlButton : public wxButton
|
||||
public:
|
||||
ControlButton(wxWindow* const parent, ControllerInterface::ControlReference* const _ref, const unsigned int width, const std::string& label = "");
|
||||
|
||||
ControllerInterface::ControlReference* const control_reference;
|
||||
ControllerInterface::ControlReference* const control_reference;
|
||||
};
|
||||
|
||||
class UDPConfigButton : public wxButton
|
||||
@@ -151,11 +151,11 @@ public:
|
||||
ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWindow* const parent, GamepadPage* const eventsink);
|
||||
~ControlGroupBox();
|
||||
|
||||
std::vector<PadSetting*> options;
|
||||
std::vector<PadSetting*> options;
|
||||
|
||||
ControllerEmu::ControlGroup* const control_group;
|
||||
wxStaticBitmap* static_bitmap;
|
||||
std::vector<ControlButton*> control_buttons;
|
||||
ControllerEmu::ControlGroup* const control_group;
|
||||
wxStaticBitmap* static_bitmap;
|
||||
std::vector<ControlButton*> control_buttons;
|
||||
};
|
||||
|
||||
class ControlGroupsSizer : public wxBoxSizer
|
||||
@@ -200,19 +200,19 @@ public:
|
||||
|
||||
void GetProfilePath(std::string& path);
|
||||
|
||||
wxComboBox* profile_cbox;
|
||||
wxComboBox* device_cbox;
|
||||
wxComboBox* profile_cbox;
|
||||
wxComboBox* device_cbox;
|
||||
|
||||
std::vector<ControlGroupBox*> control_groups;
|
||||
std::vector<ControlGroupBox*> control_groups;
|
||||
|
||||
protected:
|
||||
|
||||
ControllerEmu* const controller;
|
||||
ControllerEmu* const controller;
|
||||
|
||||
private:
|
||||
|
||||
ControlDialog* m_control_dialog;
|
||||
InputConfigDialog* const m_config_dialog;
|
||||
ControlDialog* m_control_dialog;
|
||||
InputConfigDialog* const m_config_dialog;
|
||||
InputPlugin &m_plugin;
|
||||
};
|
||||
|
||||
@@ -234,8 +234,8 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
wxNotebook* m_pad_notebook;
|
||||
std::vector<GamepadPage*> m_padpages;
|
||||
InputPlugin& m_plugin;
|
||||
wxTimer* m_update_timer;
|
||||
wxNotebook* m_pad_notebook;
|
||||
std::vector<GamepadPage*> m_padpages;
|
||||
InputPlugin& m_plugin;
|
||||
wxTimer* m_update_timer;
|
||||
};
|
||||
|
||||
@@ -215,19 +215,17 @@ void CLogWindow::OnWrapLineCheck(wxCommandEvent& event)
|
||||
#else
|
||||
wxString Text;
|
||||
// Unfortunately wrapping styles can only be changed dynamically with wxGTK
|
||||
// Notice: To retain the colors when changing word wrapping we need to
|
||||
// loop through every letter with GetStyle and then reapply them letter by letter
|
||||
// Notice: To retain the colors when changing word wrapping we need to
|
||||
// loop through every letter with GetStyle and then reapply them letter by letter
|
||||
// Prevent m_Log access while it's being destroyed
|
||||
m_LogAccess = false;
|
||||
UnPopulateBottom();
|
||||
Text = m_Log->GetValue();
|
||||
m_Log->Destroy();
|
||||
if (event.IsChecked())
|
||||
m_Log = CreateTextCtrl(this, IDM_LOG,
|
||||
wxTE_RICH | wxTE_MULTILINE | wxTE_READONLY | wxTE_WORDWRAP);
|
||||
m_Log = CreateTextCtrl(this, IDM_LOG, wxTE_RICH | wxTE_MULTILINE | wxTE_READONLY | wxTE_WORDWRAP);
|
||||
else
|
||||
m_Log = CreateTextCtrl(this, IDM_LOG,
|
||||
wxTE_RICH | wxTE_MULTILINE | wxTE_READONLY | wxTE_DONTWRAP);
|
||||
m_Log = CreateTextCtrl(this, IDM_LOG, wxTE_RICH | wxTE_MULTILINE | wxTE_READONLY | wxTE_DONTWRAP);
|
||||
m_Log->SetDefaultStyle(wxTextAttr(*wxWHITE));
|
||||
m_Log->AppendText(Text);
|
||||
PopulateBottom();
|
||||
@@ -301,7 +299,7 @@ void CLogWindow::UpdateLog()
|
||||
}
|
||||
msgQueue.pop();
|
||||
}
|
||||
} // unlock log
|
||||
} // unlock log
|
||||
|
||||
// m_LogTimer->Start(UPDATETIME);
|
||||
m_ignoreLogTimer = false;
|
||||
|
||||
@@ -92,7 +92,7 @@ void Host_GetRenderWindowSize(int& x, int& y, int& width, int& height)
|
||||
void Host_RequestRenderWindowSize(int width, int height) {}
|
||||
void Host_SetStartupDebuggingParameters()
|
||||
{
|
||||
SCoreStartupParameter& StartUp = SConfig::GetInstance().m_LocalCoreStartupParameter;
|
||||
SCoreStartupParameter& StartUp = SConfig::GetInstance().m_LocalCoreStartupParameter;
|
||||
StartUp.bEnableDebugging = false;
|
||||
StartUp.bBootToPause = false;
|
||||
}
|
||||
@@ -118,10 +118,12 @@ void Host_SysMessage(const char *fmt, ...)
|
||||
va_end(list);
|
||||
|
||||
size_t len = strlen(msg);
|
||||
if (msg[len - 1] != '\n') {
|
||||
if (msg[len - 1] != '\n')
|
||||
{
|
||||
msg[len - 1] = '\n';
|
||||
msg[len] = '\0';
|
||||
}
|
||||
|
||||
fprintf(stderr, "%s", msg);
|
||||
}
|
||||
|
||||
@@ -289,14 +291,16 @@ int main(int argc, char* argv[])
|
||||
#endif
|
||||
int ch, help = 0;
|
||||
struct option longopts[] = {
|
||||
{ "exec", no_argument, NULL, 'e' },
|
||||
{ "help", no_argument, NULL, 'h' },
|
||||
{ "version", no_argument, NULL, 'v' },
|
||||
{ NULL, 0, NULL, 0 }
|
||||
{ "exec", no_argument, NULL, 'e' },
|
||||
{ "help", no_argument, NULL, 'h' },
|
||||
{ "version", no_argument, NULL, 'v' },
|
||||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
|
||||
while ((ch = getopt_long(argc, argv, "eh?v", longopts, 0)) != -1) {
|
||||
switch (ch) {
|
||||
while ((ch = getopt_long(argc, argv, "eh?v", longopts, 0)) != -1)
|
||||
{
|
||||
switch (ch)
|
||||
{
|
||||
case 'e':
|
||||
break;
|
||||
case 'h':
|
||||
@@ -309,13 +313,14 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (help == 1 || argc == optind) {
|
||||
if (help == 1 || argc == optind)
|
||||
{
|
||||
fprintf(stderr, "%s\n\n", scm_rev_str);
|
||||
fprintf(stderr, "A multi-platform Gamecube/Wii emulator\n\n");
|
||||
fprintf(stderr, "Usage: %s [-e <file>] [-h] [-v]\n", argv[0]);
|
||||
fprintf(stderr, " -e, --exec Load the specified file\n");
|
||||
fprintf(stderr, " -h, --help Show this help message\n");
|
||||
fprintf(stderr, " -v, --help Print version and exit\n");
|
||||
fprintf(stderr, " -e, --exec Load the specified file\n");
|
||||
fprintf(stderr, " -h, --help Show this help message\n");
|
||||
fprintf(stderr, " -v, --help Print version and exit\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -346,7 +351,8 @@ int main(int argc, char* argv[])
|
||||
#endif
|
||||
#if HAVE_X11
|
||||
#if USE_EGL
|
||||
if (GLWin.platform == EGL_PLATFORM_X11) {
|
||||
if (GLWin.platform == EGL_PLATFORM_X11)
|
||||
{
|
||||
#endif
|
||||
XInitThreads();
|
||||
X11_MainLoop();
|
||||
|
||||
@@ -160,7 +160,7 @@ bool CMemcardManager::SaveSettings()
|
||||
iniMemcardSection->Set("cBanner", mcmSettings.column[COLUMN_BANNER], true);
|
||||
iniMemcardSection->Set("cTitle", mcmSettings.column[COLUMN_TITLE], true);
|
||||
iniMemcardSection->Set("cComment", mcmSettings.column[COLUMN_COMMENT], true);
|
||||
iniMemcardSection->Set("cIcon", mcmSettings.column[COLUMN_ICON], true);
|
||||
iniMemcardSection->Set("cIcon", mcmSettings.column[COLUMN_ICON], true);
|
||||
iniMemcardSection->Set("cBlocks", mcmSettings.column[COLUMN_BLOCKS], true);
|
||||
iniMemcardSection->Set("cFirst Block", mcmSettings.column[COLUMN_FIRSTBLOCK], true);
|
||||
|
||||
@@ -179,13 +179,13 @@ void CMemcardManager::CreateGUIControls()
|
||||
|
||||
for (int slot = SLOT_A; slot <= SLOT_B; slot++)
|
||||
{
|
||||
m_CopyFrom[slot] = new wxButton(this, ID_COPYFROM_A + slot,
|
||||
m_CopyFrom[slot] = new wxButton(this, ID_COPYFROM_A + slot,
|
||||
wxString::Format(_("%1$sCopy%1$s"), ARROW[slot ? 0 : 1]));
|
||||
m_SaveImport[slot] = new wxButton(this, ID_SAVEIMPORT_A + slot,
|
||||
m_SaveImport[slot] = new wxButton(this, ID_SAVEIMPORT_A + slot,
|
||||
wxString::Format(_("%sImport GCI%s"), ARROWS));
|
||||
m_SaveExport[slot] = new wxButton(this, ID_SAVEEXPORT_A + slot,
|
||||
m_SaveExport[slot] = new wxButton(this, ID_SAVEEXPORT_A + slot,
|
||||
wxString::Format(_("%sExport GCI%s"), ARROWS));
|
||||
m_Delete[slot] = new wxButton(this, ID_DELETE_A + slot,
|
||||
m_Delete[slot] = new wxButton(this, ID_DELETE_A + slot,
|
||||
wxString::Format(_("%sDelete%s"), ARROWS));
|
||||
|
||||
|
||||
@@ -389,8 +389,8 @@ void CMemcardManager::OnMenuChange(wxCommandEvent& event)
|
||||
break;
|
||||
}
|
||||
|
||||
if (memoryCard[SLOT_A]) ReloadMemcard(WxStrToStr(m_MemcardPath[SLOT_A]->GetPath()).c_str(), SLOT_A);
|
||||
if (memoryCard[SLOT_B]) ReloadMemcard(WxStrToStr(m_MemcardPath[SLOT_B]->GetPath()).c_str(), SLOT_B);
|
||||
if (memoryCard[SLOT_A]) ReloadMemcard(WxStrToStr(m_MemcardPath[SLOT_A]->GetPath()).c_str(), SLOT_A);
|
||||
if (memoryCard[SLOT_B]) ReloadMemcard(WxStrToStr(m_MemcardPath[SLOT_B]->GetPath()).c_str(), SLOT_B);
|
||||
}
|
||||
bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
|
||||
{
|
||||
@@ -684,7 +684,7 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
}
|
||||
}
|
||||
|
||||
int pagesMax = (mcmSettings.usePages) ?
|
||||
int pagesMax = (mcmSettings.usePages) ?
|
||||
(page[card] + 1) * itemsPerPage : 128;
|
||||
|
||||
for (j = page[card] * itemsPerPage; (j < nFiles) && (j < pagesMax); j++)
|
||||
@@ -718,7 +718,7 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
wxBlock.Printf(wxT("%10d"), blocks);
|
||||
m_MemcardList[card]->SetItem(index,COLUMN_BLOCKS, wxBlock);
|
||||
firstblock = memoryCard[card]->DEntry_FirstBlock(fileIndex);
|
||||
//if (firstblock == 0xFFFF) firstblock = 3; // to make firstblock -1
|
||||
//if (firstblock == 0xFFFF) firstblock = 3; // to make firstblock -1
|
||||
wxFirstBlock.Printf(wxT("%15d"), firstblock);
|
||||
m_MemcardList[card]->SetItem(index, COLUMN_FIRSTBLOCK, wxFirstBlock);
|
||||
m_MemcardList[card]->SetItem(index, COLUMN_ICON, wxEmptyString);
|
||||
@@ -808,14 +808,14 @@ void CMemcardManager::CMemcardListCtrl::OnRightClick(wxMouseEvent& event)
|
||||
|
||||
popupMenu->AppendSeparator();
|
||||
|
||||
// popupMenu->AppendCheckItem(COLUMN_BANNER, _("Show save banner"));
|
||||
// popupMenu->AppendCheckItem(COLUMN_BANNER, _("Show save banner"));
|
||||
popupMenu->AppendCheckItem(COLUMN_TITLE, _("Show save title"));
|
||||
popupMenu->AppendCheckItem(COLUMN_COMMENT, _("Show save comment"));
|
||||
popupMenu->AppendCheckItem(COLUMN_ICON, _("Show save icon"));
|
||||
popupMenu->AppendCheckItem(COLUMN_BLOCKS, _("Show save blocks"));
|
||||
popupMenu->AppendCheckItem(COLUMN_FIRSTBLOCK, _("Show first block"));
|
||||
|
||||
// for (int i = COLUMN_BANNER; i <= COLUMN_FIRSTBLOCK; i++)
|
||||
// for (int i = COLUMN_BANNER; i <= COLUMN_FIRSTBLOCK; i++)
|
||||
for (int i = COLUMN_TITLE; i <= COLUMN_FIRSTBLOCK; i++)
|
||||
{
|
||||
popupMenu->FindItem(i)->Check(__mcmSettings.column[i]);
|
||||
|
||||
@@ -36,28 +36,28 @@ class CMemcardManager : public wxDialog
|
||||
private:
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
int page[2],
|
||||
itemsPerPage,
|
||||
maxPages;
|
||||
std::string DefaultMemcard[2],
|
||||
DefaultIOPath;
|
||||
int page[2];
|
||||
int itemsPerPage;
|
||||
int maxPages;
|
||||
std::string DefaultMemcard[2];
|
||||
std::string DefaultIOPath;
|
||||
IniFile MemcardManagerIni;
|
||||
IniFile::Section* iniMemcardSection;
|
||||
|
||||
wxButton *m_CopyFrom[2],
|
||||
*m_SaveImport[2],
|
||||
*m_SaveExport[2],
|
||||
*m_Delete[2],
|
||||
*m_NextPage[2],
|
||||
*m_PrevPage[2],
|
||||
*m_ConvertToGci;
|
||||
wxButton* m_CopyFrom[2];
|
||||
wxButton* m_SaveImport[2];
|
||||
wxButton* m_SaveExport[2];
|
||||
wxButton* m_Delete[2];
|
||||
wxButton* m_NextPage[2];
|
||||
wxButton* m_PrevPage[2];
|
||||
wxButton* m_ConvertToGci;
|
||||
wxFilePickerCtrl *m_MemcardPath[2];
|
||||
wxStaticText *t_Status[2];
|
||||
|
||||
enum
|
||||
{
|
||||
ID_COPYFROM_A = 1000, // Do not rearrange these items,
|
||||
ID_COPYFROM_B, // ID_..._B must be 1 more than ID_..._A
|
||||
ID_COPYFROM_A = 1000, // Do not rearrange these items,
|
||||
ID_COPYFROM_B, // ID_..._B must be 1 more than ID_..._A
|
||||
ID_FIXCHECKSUM_A,
|
||||
ID_FIXCHECKSUM_B,
|
||||
ID_DELETE_A,
|
||||
@@ -142,8 +142,8 @@ class CMemcardManager : public wxDialog
|
||||
Unbind(wxEVT_RIGHT_DOWN, &CMemcardListCtrl::OnRightClick, this);
|
||||
}
|
||||
_mcmSettings & __mcmSettings;
|
||||
bool prevPage,
|
||||
nextPage;
|
||||
bool prevPage;
|
||||
bool nextPage;
|
||||
private:
|
||||
void OnRightClick(wxMouseEvent& event);
|
||||
};
|
||||
|
||||
@@ -18,15 +18,19 @@
|
||||
|
||||
static Common::replace_v replacements;
|
||||
|
||||
const u8 SDKey[16] = {0xAB, 0x01, 0xB9, 0xD8, 0xE1, 0x62, 0x2B, 0x08,
|
||||
0xAF, 0xBA, 0xD8, 0x4D, 0xBF, 0xC2, 0xA5, 0x5D};
|
||||
const u8 MD5_BLANKER[0x10] = {0x0E, 0x65, 0x37, 0x81, 0x99, 0xBE, 0x45, 0x17,
|
||||
0xAB, 0x06, 0xEC, 0x22, 0x45, 0x1A, 0x57, 0x93};
|
||||
const u8 SDKey[16] = {
|
||||
0xAB, 0x01, 0xB9, 0xD8, 0xE1, 0x62, 0x2B, 0x08,
|
||||
0xAF, 0xBA, 0xD8, 0x4D, 0xBF, 0xC2, 0xA5, 0x5D
|
||||
};
|
||||
const u8 MD5_BLANKER[0x10] = {
|
||||
0x0E, 0x65, 0x37, 0x81, 0x99, 0xBE, 0x45, 0x17,
|
||||
0xAB, 0x06, 0xEC, 0x22, 0x45, 0x1A, 0x57, 0x93
|
||||
};
|
||||
const u32 NG_id = 0x0403AC68;
|
||||
|
||||
bool CWiiSaveCrypted::ImportWiiSave(const char* FileName)
|
||||
{
|
||||
CWiiSaveCrypted saveFile(FileName);
|
||||
CWiiSaveCrypted saveFile(FileName);
|
||||
return saveFile.b_valid;
|
||||
}
|
||||
|
||||
@@ -147,8 +151,8 @@ void CWiiSaveCrypted::ReadHDR()
|
||||
m_TitleID = Common::swap64(_header.hdr.SaveGameTitle);
|
||||
|
||||
|
||||
u8 md5_file[16],
|
||||
md5_calc[16];
|
||||
u8 md5_file[16];
|
||||
u8 md5_calc[16];
|
||||
memcpy(md5_file, _header.hdr.Md5, 0x10);
|
||||
memcpy(_header.hdr.Md5, MD5_BLANKER, 0x10);
|
||||
md5((u8*)&_header, HEADER_SZ, md5_calc);
|
||||
@@ -195,7 +199,7 @@ void CWiiSaveCrypted::WriteHDR()
|
||||
// remove nocopy flag
|
||||
_header.BNR[7] &= ~1;
|
||||
|
||||
u8 md5_calc[16];
|
||||
u8 md5_calc[16];
|
||||
md5((u8*)&_header, HEADER_SZ, md5_calc);
|
||||
memcpy(_header.hdr.Md5, md5_calc, 0x10);
|
||||
|
||||
@@ -450,13 +454,17 @@ void CWiiSaveCrypted::do_sig()
|
||||
|
||||
u32 NG_key_id = 0x6AAB8C59;
|
||||
|
||||
u8 NG_priv[30] = { 0, 0xAB, 0xEE, 0xC1, 0xDD, 0xB4, 0xA6, 0x16, 0x6B, 0x70, 0xFD, 0x7E, 0x56, 0x67, 0x70,
|
||||
0x57, 0x55, 0x27, 0x38, 0xA3, 0x26, 0xC5, 0x46, 0x16, 0xF7, 0x62, 0xC9, 0xED, 0x73, 0xF2};
|
||||
u8 NG_priv[30] = {
|
||||
0, 0xAB, 0xEE, 0xC1, 0xDD, 0xB4, 0xA6, 0x16, 0x6B, 0x70, 0xFD, 0x7E, 0x56, 0x67, 0x70,
|
||||
0x57, 0x55, 0x27, 0x38, 0xA3, 0x26, 0xC5, 0x46, 0x16, 0xF7, 0x62, 0xC9, 0xED, 0x73, 0xF2
|
||||
};
|
||||
|
||||
u8 NG_sig[0x3C] = {0, 0xD8, 0x81, 0x63, 0xB2, 0x00, 0x6B, 0x0B, 0x54, 0x82, 0x88, 0x63, 0x81, 0x1C, 0x00,
|
||||
0x71, 0x12, 0xED, 0xB7, 0xFD, 0x21, 0xAB, 0x0E, 0x50, 0x0E, 0x1F, 0xBF, 0x78, 0xAD, 0x37,
|
||||
0x00, 0x71, 0x8D, 0x82, 0x41, 0xEE, 0x45, 0x11, 0xC7, 0x3B, 0xAC, 0x08, 0xB6, 0x83, 0xDC,
|
||||
0x05, 0xB8, 0xA8, 0x90, 0x1F, 0xA8, 0x2A, 0x0E, 0x4E, 0x76, 0xEF, 0x44, 0x72, 0x99, 0xF8};
|
||||
u8 NG_sig[0x3C] = {
|
||||
0, 0xD8, 0x81, 0x63, 0xB2, 0x00, 0x6B, 0x0B, 0x54, 0x82, 0x88, 0x63, 0x81, 0x1C, 0x00,
|
||||
0x71, 0x12, 0xED, 0xB7, 0xFD, 0x21, 0xAB, 0x0E, 0x50, 0x0E, 0x1F, 0xBF, 0x78, 0xAD, 0x37,
|
||||
0x00, 0x71, 0x8D, 0x82, 0x41, 0xEE, 0x45, 0x11, 0xC7, 0x3B, 0xAC, 0x08, 0xB6, 0x83, 0xDC,
|
||||
0x05, 0xB8, 0xA8, 0x90, 0x1F, 0xA8, 0x2A, 0x0E, 0x4E, 0x76, 0xEF, 0x44, 0x72, 0x99, 0xF8
|
||||
};
|
||||
|
||||
sprintf(signer, "Root-CA00000001-MS00000002");
|
||||
sprintf(name, "NG%08x", NG_id);
|
||||
@@ -466,7 +474,7 @@ void CWiiSaveCrypted::do_sig()
|
||||
memset(ap_priv, 0, sizeof ap_priv);
|
||||
ap_priv[10] = 1;
|
||||
|
||||
memset(ap_sig, 81, sizeof ap_sig); // temp
|
||||
memset(ap_sig, 81, sizeof ap_sig); // temp
|
||||
|
||||
sprintf(signer, "Root-CA00000001-MS00000002-NG%08x", NG_id);
|
||||
sprintf(name, "AP%08x%08x", 1, 2);
|
||||
|
||||
@@ -96,8 +96,8 @@ private:
|
||||
struct BK_Header // Not encrypted
|
||||
{
|
||||
u32 size; // 0x00000070
|
||||
// u16 magic; // 'Bk'
|
||||
// u16 magic2; // or version (0x0001)
|
||||
// u16 magic; // 'Bk'
|
||||
// u16 magic2; // or version (0x0001)
|
||||
u32 magic; // 0x426B0001
|
||||
u32 NGid;
|
||||
u32 numberOfFiles;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
#define NETPLAY_TITLEBAR "Dolphin NetPlay"
|
||||
#define NETPLAY_TITLEBAR "Dolphin NetPlay"
|
||||
#define INITIAL_PAD_BUFFER_SIZE 20
|
||||
|
||||
BEGIN_EVENT_TABLE(NetPlayDiag, wxFrame)
|
||||
|
||||
@@ -43,14 +43,14 @@ private:
|
||||
|
||||
void MakeNetPlayDiag(int port, const std::string &game, bool is_hosting);
|
||||
|
||||
wxTextCtrl *m_nickname_text,
|
||||
*m_host_port_text,
|
||||
*m_connect_port_text,
|
||||
*m_connect_ip_text;
|
||||
wxTextCtrl* m_nickname_text;
|
||||
wxTextCtrl* m_host_port_text;
|
||||
wxTextCtrl* m_connect_port_text;
|
||||
wxTextCtrl* m_connect_ip_text;
|
||||
|
||||
wxListBox* m_game_lbox;
|
||||
wxListBox* m_game_lbox;
|
||||
#ifdef USE_UPNP
|
||||
wxCheckBox* m_upnp_chk;
|
||||
wxCheckBox* m_upnp_chk;
|
||||
#endif
|
||||
|
||||
const CGameListCtrl* const m_game_list;
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
, const std::string& game, const bool is_hosting = false);
|
||||
~NetPlayDiag();
|
||||
|
||||
Common::FifoQueue<std::string> chat_msgs;
|
||||
Common::FifoQueue<std::string> chat_msgs;
|
||||
|
||||
void OnStart(wxCommandEvent& event);
|
||||
|
||||
@@ -94,17 +94,17 @@ private:
|
||||
void GetNetSettings(NetSettings &settings);
|
||||
std::string FindGame();
|
||||
|
||||
wxListBox* m_player_lbox;
|
||||
wxTextCtrl* m_chat_text;
|
||||
wxTextCtrl* m_chat_msg_text;
|
||||
wxCheckBox* m_memcard_write;
|
||||
wxCheckBox* m_record_chkbox;
|
||||
wxListBox* m_player_lbox;
|
||||
wxTextCtrl* m_chat_text;
|
||||
wxTextCtrl* m_chat_msg_text;
|
||||
wxCheckBox* m_memcard_write;
|
||||
wxCheckBox* m_record_chkbox;
|
||||
|
||||
std::string m_selected_game;
|
||||
wxButton* m_game_btn;
|
||||
wxButton* m_start_btn;
|
||||
std::string m_selected_game;
|
||||
wxButton* m_game_btn;
|
||||
wxButton* m_start_btn;
|
||||
|
||||
std::vector<int> m_playerids;
|
||||
std::vector<int> m_playerids;
|
||||
|
||||
const CGameListCtrl* const m_game_list;
|
||||
|
||||
@@ -119,8 +119,8 @@ public:
|
||||
private:
|
||||
void OnPick(wxCommandEvent& event);
|
||||
|
||||
wxListBox* m_game_lbox;
|
||||
wxString& m_game_name;
|
||||
wxListBox* m_game_lbox;
|
||||
wxString& m_game_name;
|
||||
};
|
||||
|
||||
class PadMapDiag : public wxDialog
|
||||
@@ -131,7 +131,7 @@ public:
|
||||
private:
|
||||
void OnAdjust(wxCommandEvent& event);
|
||||
|
||||
wxChoice* m_map_cbox[8];
|
||||
wxChoice* m_map_cbox[8];
|
||||
PadMapping* const m_mapping;
|
||||
PadMapping* const m_wiimapping;
|
||||
std::vector<const Player *>& m_player_list;
|
||||
|
||||
@@ -75,7 +75,7 @@ class TASInputDlg : public wxDialog
|
||||
wxCheckBox *wx_up_button, *wx_down_button, *wx_left_button, *wx_right_button, *wx_a_button, *wx_b_button, *wx_x_button, *wx_y_button, *wx_l_button, *wx_r_button, *wx_z_button, *wx_start_button;
|
||||
wxTextCtrl *wx_mainX_t, *wx_mainY_t, *wx_cX_t, *wx_cY_t, *wx_l_t, *wx_r_t;
|
||||
wxMemoryDC dc_main, dc_c;
|
||||
wxStaticBitmap* static_bitmap_main, *static_bitmap_c;
|
||||
wxStaticBitmap* static_bitmap_main, *static_bitmap_c;
|
||||
wxBitmap bitmap;
|
||||
bool A_turbo,B_turbo, X_turbo, Y_turbo, Z_turbo, L_turbo, R_turbo, START_turbo,DL_turbo,DR_turbo,DD_turbo,DU_turbo;
|
||||
bool A_cont,B_cont, X_cont, Y_cont, Z_cont, L_cont, L_button_cont, R_cont, R_button_cont, START_cont,DL_cont,DR_cont,DD_cont,DU_cont,mstickx,msticky,cstickx,csticky;
|
||||
|
||||
@@ -489,7 +489,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||
group_xfb->Add(virtual_xfb, 0, wxRIGHT, 5);
|
||||
group_xfb->Add(real_xfb, 0, wxRIGHT, 5);
|
||||
szr_hacks->Add(group_xfb, 0, wxEXPAND | wxALL, 5);
|
||||
} // xfb
|
||||
} // xfb
|
||||
|
||||
// - other hacks
|
||||
{
|
||||
|
||||
@@ -11,119 +11,120 @@ const wxString WXKeyToString(int keycode)
|
||||
{
|
||||
switch (keycode)
|
||||
{
|
||||
case WXK_BACK: return _("Back");
|
||||
case WXK_TAB: return _("Tab");
|
||||
case WXK_RETURN: return _("Return");
|
||||
case WXK_ESCAPE: return _("Escape");
|
||||
case WXK_SPACE: return _("Space");
|
||||
case WXK_DELETE: return _("Delete");
|
||||
case WXK_BACK: return _("Back");
|
||||
case WXK_TAB: return _("Tab");
|
||||
case WXK_RETURN: return _("Return");
|
||||
case WXK_ESCAPE: return _("Escape");
|
||||
case WXK_SPACE: return _("Space");
|
||||
case WXK_DELETE: return _("Delete");
|
||||
|
||||
// Undocumented wx keycodes
|
||||
case 167: return _("Paragraph");
|
||||
case 177: return _("Plus-Minus");
|
||||
case 167: return _("Paragraph");
|
||||
case 177: return _("Plus-Minus");
|
||||
|
||||
case WXK_START: return _("Start");
|
||||
case WXK_LBUTTON: return _("L Button");
|
||||
case WXK_RBUTTON: return _("R Button");
|
||||
case WXK_CANCEL: return _("Cancel");
|
||||
case WXK_MBUTTON: return _("M Button");
|
||||
case WXK_CLEAR: return _("Clear");
|
||||
case WXK_SHIFT: return wxT("Shift");
|
||||
case WXK_ALT: return wxT("Alt");
|
||||
case WXK_RAW_CONTROL: return _("Control");
|
||||
case WXK_START: return _("Start");
|
||||
case WXK_LBUTTON: return _("L Button");
|
||||
case WXK_RBUTTON: return _("R Button");
|
||||
case WXK_CANCEL: return _("Cancel");
|
||||
case WXK_MBUTTON: return _("M Button");
|
||||
case WXK_CLEAR: return _("Clear");
|
||||
case WXK_SHIFT: return wxT("Shift");
|
||||
case WXK_ALT: return wxT("Alt");
|
||||
case WXK_RAW_CONTROL: return _("Control");
|
||||
#ifdef __WXOSX__
|
||||
case WXK_COMMAND: return _("Command");
|
||||
case WXK_COMMAND: return _("Command");
|
||||
#endif
|
||||
case WXK_MENU: return _("Menu");
|
||||
case WXK_PAUSE: return _("Pause");
|
||||
case WXK_CAPITAL: return _("Caps Lock");
|
||||
case WXK_END: return _("End");
|
||||
case WXK_HOME: return _("Home");
|
||||
case WXK_LEFT: return _("Left");
|
||||
case WXK_UP: return _("Up");
|
||||
case WXK_RIGHT: return _("Right");
|
||||
case WXK_DOWN: return _("Down");
|
||||
case WXK_SELECT: return _("Select");
|
||||
case WXK_PRINT: return _("Print");
|
||||
case WXK_EXECUTE: return _("Execute");
|
||||
case WXK_SNAPSHOT: return _("Snapshot");
|
||||
case WXK_INSERT: return _("Insert");
|
||||
case WXK_HELP: return _("Help");
|
||||
case WXK_NUMPAD0: return wxT("NP 0");
|
||||
case WXK_NUMPAD1: return wxT("NP 1");
|
||||
case WXK_NUMPAD2: return wxT("NP 2");
|
||||
case WXK_NUMPAD3: return wxT("NP 3");
|
||||
case WXK_NUMPAD4: return wxT("NP 4");
|
||||
case WXK_NUMPAD5: return wxT("NP 5");
|
||||
case WXK_NUMPAD6: return wxT("NP 6");
|
||||
case WXK_NUMPAD7: return wxT("NP 7");
|
||||
case WXK_NUMPAD8: return wxT("NP 8");
|
||||
case WXK_NUMPAD9: return wxT("NP 9");
|
||||
case WXK_MULTIPLY: return _("Multiply");
|
||||
case WXK_ADD: return _("Add");
|
||||
case WXK_SEPARATOR: return _("Separator");
|
||||
case WXK_SUBTRACT: return _("Subtract");
|
||||
case WXK_DECIMAL: return _("Decimal");
|
||||
case WXK_DIVIDE: return _("Divide");
|
||||
case WXK_F1: return wxT("F1");
|
||||
case WXK_F2: return wxT("F2");
|
||||
case WXK_F3: return wxT("F3");
|
||||
case WXK_F4: return wxT("F4");
|
||||
case WXK_F5: return wxT("F5");
|
||||
case WXK_F6: return wxT("F6");
|
||||
case WXK_F7: return wxT("F7");
|
||||
case WXK_F8: return wxT("F8");
|
||||
case WXK_F9: return wxT("F9");
|
||||
case WXK_F10: return wxT("F10");
|
||||
case WXK_F11: return wxT("F11");
|
||||
case WXK_F12: return wxT("F12");
|
||||
case WXK_F13: return wxT("F13");
|
||||
case WXK_F14: return wxT("F14");
|
||||
case WXK_F15: return wxT("F15");
|
||||
case WXK_F16: return wxT("F16");
|
||||
case WXK_F17: return wxT("F17");
|
||||
case WXK_F18: return wxT("F19");
|
||||
case WXK_F19: return wxT("F20");
|
||||
case WXK_F20: return wxT("F21");
|
||||
case WXK_F21: return wxT("F22");
|
||||
case WXK_F22: return wxT("F23");
|
||||
case WXK_F23: return wxT("F24");
|
||||
case WXK_F24: return wxT("F25");
|
||||
case WXK_NUMLOCK: return _("Num Lock");
|
||||
case WXK_SCROLL: return _("Scroll Lock");
|
||||
case WXK_PAGEUP: return _("Page Up");
|
||||
case WXK_PAGEDOWN: return _("Page Down");
|
||||
case WXK_NUMPAD_SPACE: return _("NP Space");
|
||||
case WXK_NUMPAD_TAB: return _("NP Tab");
|
||||
case WXK_NUMPAD_ENTER: return _("NP Enter");
|
||||
case WXK_NUMPAD_F1: return wxT("NP F1");
|
||||
case WXK_NUMPAD_F2: return wxT("NP F2");
|
||||
case WXK_NUMPAD_F3: return wxT("NP F3");
|
||||
case WXK_NUMPAD_F4: return wxT("NP F4");
|
||||
case WXK_NUMPAD_HOME: return _("NP Home");
|
||||
case WXK_NUMPAD_LEFT: return _("NP Left");
|
||||
case WXK_NUMPAD_UP: return _("NP Up");
|
||||
case WXK_NUMPAD_RIGHT: return _("NP Right");
|
||||
case WXK_NUMPAD_DOWN: return _("NP Down");
|
||||
case WXK_NUMPAD_PAGEUP: return _("NP Page Up");
|
||||
case WXK_NUMPAD_PAGEDOWN: return _("NP Page Down");
|
||||
case WXK_NUMPAD_END: return _("NP End");
|
||||
case WXK_NUMPAD_BEGIN: return _("NP Begin");
|
||||
case WXK_NUMPAD_INSERT: return _("NP Insert");
|
||||
case WXK_NUMPAD_DELETE: return _("NP Delete");
|
||||
case WXK_NUMPAD_EQUAL: return _("NP Equal");
|
||||
case WXK_NUMPAD_MULTIPLY: return _("NP Multiply");
|
||||
case WXK_NUMPAD_ADD: return _("NP Add");
|
||||
case WXK_NUMPAD_SEPARATOR: return _("NP Separator");
|
||||
case WXK_NUMPAD_SUBTRACT: return _("NP Subtract");
|
||||
case WXK_NUMPAD_DECIMAL: return _("NP Decimal");
|
||||
case WXK_NUMPAD_DIVIDE: return _("NP Divide");
|
||||
case WXK_WINDOWS_LEFT: return _("Windows Left");
|
||||
case WXK_WINDOWS_RIGHT: return _("Windows Right");
|
||||
case WXK_WINDOWS_MENU: return _("Windows Menu");
|
||||
case WXK_MENU: return _("Menu");
|
||||
case WXK_PAUSE: return _("Pause");
|
||||
case WXK_CAPITAL: return _("Caps Lock");
|
||||
case WXK_END: return _("End");
|
||||
case WXK_HOME: return _("Home");
|
||||
case WXK_LEFT: return _("Left");
|
||||
case WXK_UP: return _("Up");
|
||||
case WXK_RIGHT: return _("Right");
|
||||
case WXK_DOWN: return _("Down");
|
||||
case WXK_SELECT: return _("Select");
|
||||
case WXK_PRINT: return _("Print");
|
||||
case WXK_EXECUTE: return _("Execute");
|
||||
case WXK_SNAPSHOT: return _("Snapshot");
|
||||
case WXK_INSERT: return _("Insert");
|
||||
case WXK_HELP: return _("Help");
|
||||
case WXK_NUMPAD0: return wxT("NP 0");
|
||||
case WXK_NUMPAD1: return wxT("NP 1");
|
||||
case WXK_NUMPAD2: return wxT("NP 2");
|
||||
case WXK_NUMPAD3: return wxT("NP 3");
|
||||
case WXK_NUMPAD4: return wxT("NP 4");
|
||||
case WXK_NUMPAD5: return wxT("NP 5");
|
||||
case WXK_NUMPAD6: return wxT("NP 6");
|
||||
case WXK_NUMPAD7: return wxT("NP 7");
|
||||
case WXK_NUMPAD8: return wxT("NP 8");
|
||||
case WXK_NUMPAD9: return wxT("NP 9");
|
||||
case WXK_MULTIPLY: return _("Multiply");
|
||||
case WXK_ADD: return _("Add");
|
||||
case WXK_SEPARATOR: return _("Separator");
|
||||
case WXK_SUBTRACT: return _("Subtract");
|
||||
case WXK_DECIMAL: return _("Decimal");
|
||||
case WXK_DIVIDE: return _("Divide");
|
||||
case WXK_F1: return wxT("F1");
|
||||
case WXK_F2: return wxT("F2");
|
||||
case WXK_F3: return wxT("F3");
|
||||
case WXK_F4: return wxT("F4");
|
||||
case WXK_F5: return wxT("F5");
|
||||
case WXK_F6: return wxT("F6");
|
||||
case WXK_F7: return wxT("F7");
|
||||
case WXK_F8: return wxT("F8");
|
||||
case WXK_F9: return wxT("F9");
|
||||
case WXK_F10: return wxT("F10");
|
||||
case WXK_F11: return wxT("F11");
|
||||
case WXK_F12: return wxT("F12");
|
||||
case WXK_F13: return wxT("F13");
|
||||
case WXK_F14: return wxT("F14");
|
||||
case WXK_F15: return wxT("F15");
|
||||
case WXK_F16: return wxT("F16");
|
||||
case WXK_F17: return wxT("F17");
|
||||
case WXK_F18: return wxT("F19");
|
||||
case WXK_F19: return wxT("F20");
|
||||
case WXK_F20: return wxT("F21");
|
||||
case WXK_F21: return wxT("F22");
|
||||
case WXK_F22: return wxT("F23");
|
||||
case WXK_F23: return wxT("F24");
|
||||
case WXK_F24: return wxT("F25");
|
||||
case WXK_NUMLOCK: return _("Num Lock");
|
||||
case WXK_SCROLL: return _("Scroll Lock");
|
||||
case WXK_PAGEUP: return _("Page Up");
|
||||
case WXK_PAGEDOWN: return _("Page Down");
|
||||
case WXK_NUMPAD_SPACE: return _("NP Space");
|
||||
case WXK_NUMPAD_TAB: return _("NP Tab");
|
||||
case WXK_NUMPAD_ENTER: return _("NP Enter");
|
||||
case WXK_NUMPAD_F1: return wxT("NP F1");
|
||||
case WXK_NUMPAD_F2: return wxT("NP F2");
|
||||
case WXK_NUMPAD_F3: return wxT("NP F3");
|
||||
case WXK_NUMPAD_F4: return wxT("NP F4");
|
||||
case WXK_NUMPAD_HOME: return _("NP Home");
|
||||
case WXK_NUMPAD_LEFT: return _("NP Left");
|
||||
case WXK_NUMPAD_UP: return _("NP Up");
|
||||
case WXK_NUMPAD_RIGHT: return _("NP Right");
|
||||
case WXK_NUMPAD_DOWN: return _("NP Down");
|
||||
case WXK_NUMPAD_PAGEUP: return _("NP Page Up");
|
||||
case WXK_NUMPAD_PAGEDOWN: return _("NP Page Down");
|
||||
case WXK_NUMPAD_END: return _("NP End");
|
||||
case WXK_NUMPAD_BEGIN: return _("NP Begin");
|
||||
case WXK_NUMPAD_INSERT: return _("NP Insert");
|
||||
case WXK_NUMPAD_DELETE: return _("NP Delete");
|
||||
case WXK_NUMPAD_EQUAL: return _("NP Equal");
|
||||
case WXK_NUMPAD_MULTIPLY: return _("NP Multiply");
|
||||
case WXK_NUMPAD_ADD: return _("NP Add");
|
||||
case WXK_NUMPAD_SEPARATOR: return _("NP Separator");
|
||||
case WXK_NUMPAD_SUBTRACT: return _("NP Subtract");
|
||||
case WXK_NUMPAD_DECIMAL: return _("NP Decimal");
|
||||
case WXK_NUMPAD_DIVIDE: return _("NP Divide");
|
||||
case WXK_WINDOWS_LEFT: return _("Windows Left");
|
||||
case WXK_WINDOWS_RIGHT: return _("Windows Right");
|
||||
case WXK_WINDOWS_MENU: return _("Windows Menu");
|
||||
}
|
||||
|
||||
if (keycode > WXK_SPACE && keycode < WXK_DELETE) {
|
||||
if (keycode > WXK_SPACE && keycode < WXK_DELETE)
|
||||
{
|
||||
return wxString((wxChar)keycode, 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
private:
|
||||
void Cancel(wxCommandEvent& event);
|
||||
|
||||
InputPlugin& m_plugin;
|
||||
InputPlugin& m_plugin;
|
||||
|
||||
std::map<wxWindowID, unsigned int> m_wiimote_index_from_ctrl_id;
|
||||
unsigned int m_orig_wiimote_sources[MAX_BBMOTES];
|
||||
|
||||
Reference in New Issue
Block a user