mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Run code through the advanced tool 'sed' to remove trailing whitespace.
This commit is contained in:
parent
965b32be9c
commit
c579637eaf
568 changed files with 8650 additions and 8654 deletions
|
@ -98,7 +98,7 @@ void CFrame::CreateMenu()
|
|||
|
||||
wxMenu *externalDrive = new wxMenu;
|
||||
fileMenu->Append(IDM_DRIVES, _("&Boot from DVD Drive..."), externalDrive);
|
||||
|
||||
|
||||
drives = cdio_get_devices();
|
||||
// Windows Limitation of 24 character drives
|
||||
for (unsigned int i = 0; i < drives.size() && i < 24; i++) {
|
||||
|
@ -155,7 +155,7 @@ void CFrame::CreateMenu()
|
|||
saveMenu->AppendSeparator();
|
||||
|
||||
loadMenu->Append(IDM_LOADSTATEFILE, GetMenuLabel(HK_LOAD_STATE_FILE));
|
||||
|
||||
|
||||
loadMenu->Append(IDM_UNDOLOADSTATE, GetMenuLabel(HK_UNDO_LOAD_STATE));
|
||||
loadMenu->AppendSeparator();
|
||||
|
||||
|
@ -386,7 +386,7 @@ wxString CFrame::GetMenuLabel(int Id)
|
|||
case HK_LOAD_STATE_SLOT_8:
|
||||
case HK_LOAD_STATE_SLOT_9:
|
||||
case HK_LOAD_STATE_SLOT_10:
|
||||
Label = wxString::Format(_("Slot %i"),
|
||||
Label = wxString::Format(_("Slot %i"),
|
||||
Id - HK_LOAD_STATE_SLOT_1 + 1);
|
||||
break;
|
||||
|
||||
|
@ -400,7 +400,7 @@ wxString CFrame::GetMenuLabel(int Id)
|
|||
case HK_SAVE_STATE_SLOT_8:
|
||||
case HK_SAVE_STATE_SLOT_9:
|
||||
case HK_SAVE_STATE_SLOT_10:
|
||||
Label = wxString::Format(_("Slot %i"),
|
||||
Label = wxString::Format(_("Slot %i"),
|
||||
Id - HK_SAVE_STATE_SLOT_1 + 1);
|
||||
break;
|
||||
case HK_SAVE_STATE_FILE:
|
||||
|
@ -437,7 +437,7 @@ wxString CFrame::GetMenuLabel(int Id)
|
|||
hotkeymodifier |= wxMOD_CONTROL;
|
||||
#endif
|
||||
hotkeymodifier &= wxMOD_CONTROL | wxMOD_ALT | wxMOD_SHIFT;
|
||||
|
||||
|
||||
Modifier = InputCommon::WXKeymodToString(hotkeymodifier);
|
||||
Hotkey = InputCommon::WXKeyToString(hotkey);
|
||||
if (Modifier.Len() + Hotkey.Len() > 0)
|
||||
|
@ -505,7 +505,7 @@ void CFrame::RecreateToolbar()
|
|||
m_ToolBar = new wxAuiToolBar(this, ID_TOOLBAR, wxDefaultPosition, wxDefaultSize, TOOLBAR_STYLE);
|
||||
|
||||
PopulateToolbar(m_ToolBar);
|
||||
|
||||
|
||||
m_Mgr->AddPane(m_ToolBar, wxAuiPaneInfo().
|
||||
Name(wxT("TBMain")).Caption(wxT("TBMain")).
|
||||
ToolbarPane().Top().
|
||||
|
@ -515,7 +515,7 @@ void CFrame::RecreateToolbar()
|
|||
{
|
||||
m_ToolBarDebug = new wxAuiToolBar(this, ID_TOOLBAR_DEBUG, wxDefaultPosition, wxDefaultSize, TOOLBAR_STYLE);
|
||||
g_pCodeWindow->PopulateToolbar(m_ToolBarDebug);
|
||||
|
||||
|
||||
m_Mgr->AddPane(m_ToolBarDebug, wxAuiPaneInfo().
|
||||
Name(wxT("TBDebug")).Caption(wxT("TBDebug")).
|
||||
ToolbarPane().Top().
|
||||
|
@ -695,7 +695,7 @@ void CFrame::OnChangeDisc(wxCommandEvent& WXUNUSED (event))
|
|||
void CFrame::OnRecord(wxCommandEvent& WXUNUSED (event))
|
||||
{
|
||||
int controllers = 0;
|
||||
|
||||
|
||||
if (Movie::IsReadOnly())
|
||||
{
|
||||
//PanicAlertT("Cannot record movies in read-only mode.");
|
||||
|
@ -723,7 +723,7 @@ void CFrame::OnPlayRecording(wxCommandEvent& WXUNUSED (event))
|
|||
wxString path = wxFileSelector(
|
||||
_("Select The Recording File"),
|
||||
wxEmptyString, wxEmptyString, wxEmptyString,
|
||||
_("Dolphin TAS Movies (*.dtm)") +
|
||||
_("Dolphin TAS Movies (*.dtm)") +
|
||||
wxString::Format(wxT("|*.dtm|%s"), wxGetTranslation(wxALL_FILES)),
|
||||
wxFD_OPEN | wxFD_PREVIEW | wxFD_FILE_MUST_EXIST,
|
||||
this);
|
||||
|
@ -951,7 +951,7 @@ void CFrame::StartGame(const std::string& filename)
|
|||
#else
|
||||
m_RenderParent->SetFocus();
|
||||
#endif
|
||||
|
||||
|
||||
wxTheApp->Bind(wxEVT_KEY_DOWN, &CFrame::OnKeyDown, this);
|
||||
wxTheApp->Bind(wxEVT_KEY_UP, &CFrame::OnKeyUp, this);
|
||||
wxTheApp->Bind(wxEVT_RIGHT_DOWN, &CFrame::OnMouse, this);
|
||||
|
@ -1135,23 +1135,23 @@ void CFrame::DoStop()
|
|||
void CFrame::DoRecordingSave()
|
||||
{
|
||||
bool paused = (Core::GetState() == Core::CORE_PAUSE);
|
||||
|
||||
|
||||
if (!paused)
|
||||
DoPause();
|
||||
|
||||
|
||||
wxString path = wxFileSelector(
|
||||
_("Select The Recording File"),
|
||||
wxEmptyString, wxEmptyString, wxEmptyString,
|
||||
_("Dolphin TAS Movies (*.dtm)") +
|
||||
_("Dolphin TAS Movies (*.dtm)") +
|
||||
wxString::Format(wxT("|*.dtm|%s"), wxGetTranslation(wxALL_FILES)),
|
||||
wxFD_SAVE | wxFD_PREVIEW | wxFD_OVERWRITE_PROMPT,
|
||||
this);
|
||||
|
||||
if(path.IsEmpty())
|
||||
return;
|
||||
|
||||
|
||||
Movie::SaveRecording(WxStrToStr(path).c_str());
|
||||
|
||||
|
||||
if (!paused)
|
||||
DoPause();
|
||||
}
|
||||
|
@ -1323,12 +1323,12 @@ void CFrame::OnMemcard(wxCommandEvent& WXUNUSED (event))
|
|||
MemcardManager.ShowModal();
|
||||
}
|
||||
|
||||
void CFrame::OnExportAllSaves(wxCommandEvent& WXUNUSED (event))
|
||||
void CFrame::OnExportAllSaves(wxCommandEvent& WXUNUSED (event))
|
||||
{
|
||||
CWiiSaveCrypted::ExportAllSaves();
|
||||
}
|
||||
|
||||
void CFrame::OnImportSave(wxCommandEvent& WXUNUSED (event))
|
||||
void CFrame::OnImportSave(wxCommandEvent& WXUNUSED (event))
|
||||
{
|
||||
wxString path = wxFileSelector(_("Select the save file"),
|
||||
wxEmptyString, wxEmptyString, wxEmptyString,
|
||||
|
@ -1477,7 +1477,7 @@ void CFrame::OnLoadStateFromFile(wxCommandEvent& WXUNUSED (event))
|
|||
wxString path = wxFileSelector(
|
||||
_("Select the state to load"),
|
||||
wxEmptyString, wxEmptyString, wxEmptyString,
|
||||
_("All Save States (sav, s##)") +
|
||||
_("All Save States (sav, s##)") +
|
||||
wxString::Format(wxT("|*.sav;*.s??|%s"), wxGetTranslation(wxALL_FILES)),
|
||||
wxFD_OPEN | wxFD_PREVIEW | wxFD_FILE_MUST_EXIST,
|
||||
this);
|
||||
|
@ -1491,7 +1491,7 @@ void CFrame::OnSaveStateToFile(wxCommandEvent& WXUNUSED (event))
|
|||
wxString path = wxFileSelector(
|
||||
_("Select the state to save"),
|
||||
wxEmptyString, wxEmptyString, wxEmptyString,
|
||||
_("All Save States (sav, s##)") +
|
||||
_("All Save States (sav, s##)") +
|
||||
wxString::Format(wxT("|*.sav;*.s??|%s"), wxGetTranslation(wxALL_FILES)),
|
||||
wxFD_SAVE,
|
||||
this);
|
||||
|
@ -1658,9 +1658,9 @@ void CFrame::UpdateGUI()
|
|||
m_ToolBar->SetToolLabel(IDM_PLAY, _("Play"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GetMenuBar()->FindItem(IDM_RECORDREADONLY)->Enable(Running || Paused);
|
||||
|
||||
|
||||
if (!Initialized && !m_bGameLoading)
|
||||
{
|
||||
if (m_GameListCtrl->IsEnabled())
|
||||
|
@ -1791,17 +1791,17 @@ void CFrame::GameListChanged(wxCommandEvent& event)
|
|||
Directories.push_back(File::GetUserPath(D_CACHE_IDX).c_str());
|
||||
CFileSearch::XStringVector Extensions;
|
||||
Extensions.push_back("*.cache");
|
||||
|
||||
|
||||
CFileSearch FileSearch(Extensions, Directories);
|
||||
const CFileSearch::XStringVector& rFilenames = FileSearch.GetFileNames();
|
||||
|
||||
|
||||
for (auto& rFilename : rFilenames)
|
||||
{
|
||||
File::Delete(rFilename);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
// Update gamelist
|
||||
if (m_GameListCtrl)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue