mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06: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:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user