mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 23:55:52 +00:00
Reformat all the things!
This commit is contained in:
parent
d27e85e9d7
commit
40bb9974f2
179 changed files with 1888 additions and 991 deletions
|
@ -19,6 +19,7 @@ public:
|
|||
long style = wxDEFAULT_DIALOG_STYLE);
|
||||
|
||||
const ActionReplay::ARCode& GetCode() const { return m_code; }
|
||||
|
||||
private:
|
||||
void CreateGUI();
|
||||
void SaveCheatData(wxCommandEvent& event);
|
||||
|
|
|
@ -30,6 +30,7 @@ public:
|
|||
void LoadCodes(const IniFile& globalIni, const IniFile& localIni, const std::string& gameid = "",
|
||||
bool checkRunning = false);
|
||||
const std::vector<GeckoCode>& GetCodes() const { return m_gcodes; }
|
||||
|
||||
protected:
|
||||
void UpdateInfoBox(wxCommandEvent&);
|
||||
void ToggleCode(wxCommandEvent& evt);
|
||||
|
|
|
@ -46,15 +46,16 @@ void AdvancedConfigPane::InitializeGUI()
|
|||
m_custom_rtc_time_picker = new wxTimePickerCtrl(this, wxID_ANY);
|
||||
|
||||
wxStaticText* const clock_override_description =
|
||||
new wxStaticText(this, wxID_ANY, _("Adjusts the emulated CPU's clock rate.\n\n"
|
||||
"Higher values may make variable-framerate games run "
|
||||
"at a higher framerate, at the expense of performance. "
|
||||
"Lower values may activate a game's internal "
|
||||
"frameskip, potentially improving performance.\n\n"
|
||||
"WARNING: Changing this from the default (100%) "
|
||||
"can and will break games and cause glitches. "
|
||||
"Do so at your own risk. Please do not report "
|
||||
"bugs that occur with a non-default clock."));
|
||||
new wxStaticText(this, wxID_ANY,
|
||||
_("Adjusts the emulated CPU's clock rate.\n\n"
|
||||
"Higher values may make variable-framerate games run "
|
||||
"at a higher framerate, at the expense of performance. "
|
||||
"Lower values may activate a game's internal "
|
||||
"frameskip, potentially improving performance.\n\n"
|
||||
"WARNING: Changing this from the default (100%) "
|
||||
"can and will break games and cause glitches. "
|
||||
"Do so at your own risk. Please do not report "
|
||||
"bugs that occur with a non-default clock."));
|
||||
|
||||
wxStaticText* const custom_rtc_description = new wxStaticText(
|
||||
this, wxID_ANY,
|
||||
|
|
|
@ -82,7 +82,8 @@ void GameCubeConfigPane::InitializeGUI()
|
|||
// Device settings
|
||||
// EXI Devices
|
||||
wxStaticText* GCEXIDeviceText[3] = {
|
||||
new wxStaticText(this, wxID_ANY, _("Slot A")), new wxStaticText(this, wxID_ANY, _("Slot B")),
|
||||
new wxStaticText(this, wxID_ANY, _("Slot A")),
|
||||
new wxStaticText(this, wxID_ANY, _("Slot B")),
|
||||
new wxStaticText(this, wxID_ANY, "SP1"),
|
||||
};
|
||||
|
||||
|
|
|
@ -354,9 +354,9 @@ wxSizer* ControllerConfigDiag::CreateEmulatedBTConfigSizer()
|
|||
wxDLG_UNIT(this, wxSize(60, -1)));
|
||||
m_refresh_wm_button->Bind(wxEVT_BUTTON, &ControllerConfigDiag::OnWiimoteRefreshButton, this);
|
||||
|
||||
m_unsupported_bt_text =
|
||||
new wxStaticText(this, wxID_ANY, _("A supported Bluetooth device could not be found,\n"
|
||||
"so you must connect Wii Remotes manually."));
|
||||
m_unsupported_bt_text = new wxStaticText(this, wxID_ANY,
|
||||
_("A supported Bluetooth device could not be found,\n"
|
||||
"so you must connect Wii Remotes manually."));
|
||||
m_unsupported_bt_text->Show(!WiimoteReal::g_wiimote_scanner.IsReady());
|
||||
|
||||
// Balance Board
|
||||
|
@ -481,8 +481,9 @@ void ControllerConfigDiag::OnGameCubeConfigButton(wxCommandEvent& event)
|
|||
else if (device_type == SerialInterface::SIDEVICE_WIIU_ADAPTER)
|
||||
{
|
||||
GCAdapterConfigDiag config_diag(
|
||||
this, wxString::Format(_("Wii U GameCube Controller Adapter Configuration Port %i"),
|
||||
port_num + 1),
|
||||
this,
|
||||
wxString::Format(_("Wii U GameCube Controller Adapter Configuration Port %i"),
|
||||
port_num + 1),
|
||||
port_num);
|
||||
config_diag.ShowModal();
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ public:
|
|||
}
|
||||
|
||||
void SetPlain() { m_plain = true; }
|
||||
|
||||
private:
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
void OnScrollWheel(wxMouseEvent& event);
|
||||
|
|
18
Source/Core/DolphinWX/Debugger/RegisterView.cpp
Executable file → Normal file
18
Source/Core/DolphinWX/Debugger/RegisterView.cpp
Executable file → Normal file
|
@ -319,19 +319,19 @@ wxString CRegTable::GetValue(int row, int col)
|
|||
PowerPC::ppcState.spr[SPR_DBAT0L + row * 2]);
|
||||
|
||||
if (row < 8)
|
||||
return wxString::Format("%016llx", (u64)PowerPC::ppcState.spr[SPR_IBAT0U + (row - 4) * 2]
|
||||
<< 32 |
|
||||
PowerPC::ppcState.spr[SPR_IBAT0L + (row - 4) * 2]);
|
||||
return wxString::Format("%016llx",
|
||||
(u64)PowerPC::ppcState.spr[SPR_IBAT0U + (row - 4) * 2] << 32 |
|
||||
PowerPC::ppcState.spr[SPR_IBAT0L + (row - 4) * 2]);
|
||||
|
||||
if (row < 12)
|
||||
return wxString::Format("%016llx", (u64)PowerPC::ppcState.spr[SPR_DBAT4U + (row - 12) * 2]
|
||||
<< 32 |
|
||||
PowerPC::ppcState.spr[SPR_DBAT4L + (row - 12) * 2]);
|
||||
return wxString::Format("%016llx",
|
||||
(u64)PowerPC::ppcState.spr[SPR_DBAT4U + (row - 12) * 2] << 32 |
|
||||
PowerPC::ppcState.spr[SPR_DBAT4L + (row - 12) * 2]);
|
||||
|
||||
if (row < 16)
|
||||
return wxString::Format("%016llx", (u64)PowerPC::ppcState.spr[SPR_IBAT4U + (row - 16) * 2]
|
||||
<< 32 |
|
||||
PowerPC::ppcState.spr[SPR_IBAT4L + (row - 16) * 2]);
|
||||
return wxString::Format("%016llx",
|
||||
(u64)PowerPC::ppcState.spr[SPR_IBAT4U + (row - 16) * 2] << 32 |
|
||||
PowerPC::ppcState.spr[SPR_IBAT4L + (row - 16) * 2]);
|
||||
|
||||
if (row == 16)
|
||||
return wxString::Format("%016" PRIx64, static_cast<u64>(PowerPC::ppcState.spr[SPR_TU])
|
||||
|
|
|
@ -204,7 +204,7 @@ WXLRESULT CRenderFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPa
|
|||
// Let Core finish initializing before accepting any WM_CLOSE messages
|
||||
if (!Core::IsRunning())
|
||||
break;
|
||||
// Use default action otherwise
|
||||
// Use default action otherwise
|
||||
|
||||
default:
|
||||
// By default let wxWidgets do what it normally does with this event
|
||||
|
@ -670,14 +670,15 @@ void CFrame::OnResize(wxSizeEvent& event)
|
|||
|
||||
// Make sure the logger pane is a sane size
|
||||
if (!m_code_window && m_log_window && m_mgr->GetPane("Pane 1").IsShown() &&
|
||||
!m_mgr->GetPane("Pane 1").IsFloating() && (m_log_window->x > GetClientRect().GetWidth() ||
|
||||
m_log_window->y > GetClientRect().GetHeight()))
|
||||
!m_mgr->GetPane("Pane 1").IsFloating() &&
|
||||
(m_log_window->x > GetClientRect().GetWidth() ||
|
||||
m_log_window->y > GetClientRect().GetHeight()))
|
||||
{
|
||||
ShowResizePane();
|
||||
}
|
||||
}
|
||||
|
||||
// Host messages
|
||||
// Host messages
|
||||
|
||||
#ifdef _WIN32
|
||||
WXLRESULT CFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
|
@ -735,7 +736,7 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
|||
case IDM_UPDATE_DISASM_DIALOG: // For breakpoints causing pausing
|
||||
if (!m_code_window || Core::GetState() != Core::State::Paused)
|
||||
return;
|
||||
// fallthrough
|
||||
// fallthrough
|
||||
|
||||
case IDM_UPDATE_GUI:
|
||||
UpdateGUI();
|
||||
|
|
|
@ -856,10 +856,11 @@ void CFrame::DoStop()
|
|||
}
|
||||
|
||||
wxMessageDialog m_StopDlg(
|
||||
this, !m_tried_graceful_shutdown ? _("Do you want to stop the current emulation?") :
|
||||
_("A shutdown is already in progress. Unsaved data "
|
||||
"may be lost if you stop the current emulation "
|
||||
"before it completes. Force stop?"),
|
||||
this,
|
||||
!m_tried_graceful_shutdown ? _("Do you want to stop the current emulation?") :
|
||||
_("A shutdown is already in progress. Unsaved data "
|
||||
"may be lost if you stop the current emulation "
|
||||
"before it completes. Force stop?"),
|
||||
_("Please confirm..."), wxYES_NO | wxSTAY_ON_TOP | wxICON_EXCLAMATION, wxDefaultPosition);
|
||||
|
||||
HotkeyManagerEmu::Enable(false);
|
||||
|
|
|
@ -1126,8 +1126,9 @@ void GameListCtrl::CompressSelection(bool _compress)
|
|||
wxProgressDialog progressDialog(
|
||||
_compress ? _("Compressing ISO") : _("Decompressing ISO"), _("Working..."),
|
||||
1000, // Arbitrary number that's larger than the dialog's width in pixels
|
||||
this, wxPD_APP_MODAL | wxPD_CAN_ABORT | wxPD_ELAPSED_TIME | wxPD_ESTIMATED_TIME |
|
||||
wxPD_REMAINING_TIME | wxPD_SMOOTH);
|
||||
this,
|
||||
wxPD_APP_MODAL | wxPD_CAN_ABORT | wxPD_ELAPSED_TIME | wxPD_ESTIMATED_TIME |
|
||||
wxPD_REMAINING_TIME | wxPD_SMOOTH);
|
||||
|
||||
CompressionProgress progress(0, items_to_compress.size(), "", &progressDialog);
|
||||
|
||||
|
|
|
@ -256,9 +256,10 @@ void CISOProperties::CreateGUIControls()
|
|||
_("Info"));
|
||||
|
||||
// GameConfig editing - Overrides and emulation state
|
||||
wxStaticText* const OverrideText = new wxStaticText(
|
||||
m_GameConfig, wxID_ANY, _("These settings override core Dolphin settings.\nUndetermined "
|
||||
"means the game uses Dolphin's setting."));
|
||||
wxStaticText* const OverrideText =
|
||||
new wxStaticText(m_GameConfig, wxID_ANY,
|
||||
_("These settings override core Dolphin settings.\nUndetermined "
|
||||
"means the game uses Dolphin's setting."));
|
||||
|
||||
// Core
|
||||
m_cpu_thread =
|
||||
|
|
|
@ -91,8 +91,9 @@ void CLogWindow::CreateGUIControls()
|
|||
m_WrapLine->SetValue(wrap_lines);
|
||||
|
||||
// Log viewer
|
||||
m_Log = CreateTextCtrl(this, wxID_ANY, wxTE_RICH | wxTE_MULTILINE | wxTE_READONLY |
|
||||
(wrap_lines ? wxTE_WORDWRAP : wxTE_DONTWRAP));
|
||||
m_Log = CreateTextCtrl(this, wxID_ANY,
|
||||
wxTE_RICH | wxTE_MULTILINE | wxTE_READONLY |
|
||||
(wrap_lines ? wxTE_WORDWRAP : wxTE_DONTWRAP));
|
||||
|
||||
// submit row
|
||||
m_cmdline = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize,
|
||||
|
|
|
@ -77,6 +77,7 @@ public:
|
|||
const std::vector<std::string>& PerspectiveNames() const { return m_perspective_names; }
|
||||
int ActivePerspective() const { return m_active_perspective; }
|
||||
wxEvent* Clone() const override { return new PopulatePerspectivesEvent(*this); }
|
||||
|
||||
private:
|
||||
std::vector<std::string> m_perspective_names;
|
||||
int m_active_perspective{};
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <vector>
|
||||
#include <wx/dialog.h>
|
||||
|
||||
class NetPlayServer;
|
||||
|
|
|
@ -35,6 +35,7 @@ private:
|
|||
public:
|
||||
UserEventData(const std::string& data) : m_data(data) {}
|
||||
const std::string& GetData() { return m_data; }
|
||||
|
||||
private:
|
||||
const std::string m_data;
|
||||
};
|
||||
|
|
|
@ -44,24 +44,49 @@ struct TASWiimoteReport
|
|||
};
|
||||
|
||||
constexpr std::array<int, 12> s_gc_pad_buttons_bitmask{{
|
||||
PAD_BUTTON_DOWN, PAD_BUTTON_UP, PAD_BUTTON_LEFT, PAD_BUTTON_RIGHT, PAD_BUTTON_A, PAD_BUTTON_B,
|
||||
PAD_BUTTON_X, PAD_BUTTON_Y, PAD_TRIGGER_Z, PAD_TRIGGER_L, PAD_TRIGGER_R, PAD_BUTTON_START,
|
||||
PAD_BUTTON_DOWN,
|
||||
PAD_BUTTON_UP,
|
||||
PAD_BUTTON_LEFT,
|
||||
PAD_BUTTON_RIGHT,
|
||||
PAD_BUTTON_A,
|
||||
PAD_BUTTON_B,
|
||||
PAD_BUTTON_X,
|
||||
PAD_BUTTON_Y,
|
||||
PAD_TRIGGER_Z,
|
||||
PAD_TRIGGER_L,
|
||||
PAD_TRIGGER_R,
|
||||
PAD_BUTTON_START,
|
||||
}};
|
||||
|
||||
constexpr std::array<int, 11> s_wii_buttons_bitmask{{
|
||||
WiimoteEmu::Wiimote::PAD_DOWN, WiimoteEmu::Wiimote::PAD_UP, WiimoteEmu::Wiimote::PAD_LEFT,
|
||||
WiimoteEmu::Wiimote::PAD_RIGHT, WiimoteEmu::Wiimote::BUTTON_A, WiimoteEmu::Wiimote::BUTTON_B,
|
||||
WiimoteEmu::Wiimote::BUTTON_ONE, WiimoteEmu::Wiimote::BUTTON_TWO,
|
||||
WiimoteEmu::Wiimote::BUTTON_PLUS, WiimoteEmu::Wiimote::BUTTON_MINUS,
|
||||
WiimoteEmu::Wiimote::PAD_DOWN,
|
||||
WiimoteEmu::Wiimote::PAD_UP,
|
||||
WiimoteEmu::Wiimote::PAD_LEFT,
|
||||
WiimoteEmu::Wiimote::PAD_RIGHT,
|
||||
WiimoteEmu::Wiimote::BUTTON_A,
|
||||
WiimoteEmu::Wiimote::BUTTON_B,
|
||||
WiimoteEmu::Wiimote::BUTTON_ONE,
|
||||
WiimoteEmu::Wiimote::BUTTON_TWO,
|
||||
WiimoteEmu::Wiimote::BUTTON_PLUS,
|
||||
WiimoteEmu::Wiimote::BUTTON_MINUS,
|
||||
WiimoteEmu::Wiimote::BUTTON_HOME,
|
||||
}};
|
||||
|
||||
constexpr std::array<int, 15> s_cc_buttons_bitmask{{
|
||||
WiimoteEmu::Classic::PAD_DOWN, WiimoteEmu::Classic::PAD_UP, WiimoteEmu::Classic::PAD_LEFT,
|
||||
WiimoteEmu::Classic::PAD_RIGHT, WiimoteEmu::Classic::BUTTON_A, WiimoteEmu::Classic::BUTTON_B,
|
||||
WiimoteEmu::Classic::BUTTON_X, WiimoteEmu::Classic::BUTTON_Y, WiimoteEmu::Classic::BUTTON_PLUS,
|
||||
WiimoteEmu::Classic::BUTTON_MINUS, WiimoteEmu::Classic::TRIGGER_L,
|
||||
WiimoteEmu::Classic::TRIGGER_R, WiimoteEmu::Classic::BUTTON_ZR, WiimoteEmu::Classic::BUTTON_ZL,
|
||||
WiimoteEmu::Classic::PAD_DOWN,
|
||||
WiimoteEmu::Classic::PAD_UP,
|
||||
WiimoteEmu::Classic::PAD_LEFT,
|
||||
WiimoteEmu::Classic::PAD_RIGHT,
|
||||
WiimoteEmu::Classic::BUTTON_A,
|
||||
WiimoteEmu::Classic::BUTTON_B,
|
||||
WiimoteEmu::Classic::BUTTON_X,
|
||||
WiimoteEmu::Classic::BUTTON_Y,
|
||||
WiimoteEmu::Classic::BUTTON_PLUS,
|
||||
WiimoteEmu::Classic::BUTTON_MINUS,
|
||||
WiimoteEmu::Classic::TRIGGER_L,
|
||||
WiimoteEmu::Classic::TRIGGER_R,
|
||||
WiimoteEmu::Classic::BUTTON_ZR,
|
||||
WiimoteEmu::Classic::BUTTON_ZL,
|
||||
WiimoteEmu::Classic::BUTTON_HOME,
|
||||
}};
|
||||
|
||||
|
|
|
@ -328,8 +328,9 @@ static wxString shader_compile_before_start_desc =
|
|||
"queue may reduce frame rates. Otherwise, if unsure, leave this unchecked.");
|
||||
|
||||
VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string& title)
|
||||
: wxDialog(parent, wxID_ANY, wxString::Format(_("Dolphin %s Graphics Configuration"),
|
||||
wxGetTranslation(StrToWxStr(title)))),
|
||||
: wxDialog(parent, wxID_ANY,
|
||||
wxString::Format(_("Dolphin %s Graphics Configuration"),
|
||||
wxGetTranslation(StrToWxStr(title)))),
|
||||
vconfig(g_Config)
|
||||
{
|
||||
// We don't need to load the config if the core is running, since it would have been done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue