Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Save memory card paths relative to exe directory.
  • Loading branch information
RachelBryk committed Jan 20, 2013
1 parent 4cc4abf commit 83237a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/Core/DolphinWX/Src/ConfigMain.cpp
Expand Up @@ -1064,6 +1064,13 @@ void CConfigMain::ChooseMemcardPath(std::string& strMemcard, bool isSlotA)
return;
}
}
#ifdef _WIN32
if (!strncmp(File::GetExeDirectory().c_str(), filename.c_str(), File::GetExeDirectory().size()))
{
filename.erase(0, File::GetExeDirectory().size() +1);
filename = "./" + filename;
}
#endif

// also check that the path isn't used for the other memcard...
if (filename.compare(isSlotA ? SConfig::GetInstance().m_strMemoryCardB
Expand Down

0 comments on commit 83237a3

Please sign in to comment.