mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Merge large parts of nakeee's "Soap" branch into trunk, after fixing a few crash bugs in FileUtil.cpp.
Not really anything interesting, just some better comments, some slightly more portable/cleaner code in places. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2459 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2783f24cfe
commit
4bdb4aa0d1
77 changed files with 1610 additions and 1479 deletions
|
@ -419,8 +419,7 @@ void CFrame::OnOpen(wxCommandEvent& WXUNUSED (event))
|
|||
|
||||
void CFrame::DoOpen(bool Boot)
|
||||
{
|
||||
std::string currentDir;
|
||||
File::GetCurrentDirectory(currentDir);
|
||||
std::string currentDir = File::GetCurrentDirectory();
|
||||
|
||||
wxString path = wxFileSelector(
|
||||
_T("Select the file to load"),
|
||||
|
@ -438,13 +437,12 @@ void CFrame::DoOpen(bool Boot)
|
|||
return;
|
||||
}
|
||||
|
||||
std::string currentDir2;
|
||||
File::GetCurrentDirectory(currentDir2);
|
||||
std::string currentDir2 = File::GetCurrentDirectory();
|
||||
|
||||
if (currentDir != currentDir2)
|
||||
{
|
||||
PanicAlert("Current dir changed has been changeg from %s to %s after wxFileSelector!",currentDir.c_str(),currentDir2.c_str());
|
||||
File::SetCurrentDirectory(currentDir);
|
||||
File::SetCurrentDirectory(currentDir.c_str());
|
||||
}
|
||||
|
||||
|
||||
|
@ -839,3 +837,4 @@ void CFrame::UpdateGUI()
|
|||
TheToolBar->Realize();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue