diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2013-01-20 19:15:48 -0500 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2013-01-20 19:16:02 -0500 |
| commit | 45a7fa293bebd520d86f5068dc866a35793d7af8 (patch) | |
| tree | 0c66600797ad3fc1395507bec1f562f1eee7a4c3 /Source/Core | |
| parent | 83237a36e03dc53545dab51f6a54c70bfc7b2b66 (diff) | |
Set the default memory card path as relative too.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Src/CoreParameter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/Core/Src/CoreParameter.cpp b/Source/Core/Core/Src/CoreParameter.cpp index 9fc451c807..7f019bcf59 100644 --- a/Source/Core/Core/Src/CoreParameter.cpp +++ b/Source/Core/Core/Src/CoreParameter.cpp @@ -348,7 +348,11 @@ void SCoreStartupParameter::CheckMemcardPath(std::string& memcardPath, std::stri { // Use default memcard path if there is no user defined name std::string defaultFilename = isSlotA ? GC_MEMCARDA : GC_MEMCARDB; - memcardPath = File::GetUserPath(D_GCUSER_IDX) + defaultFilename + ext; + #ifdef _WIN32 + memcardPath = "." + File::GetUserPath(D_GCUSER_IDX).substr(File::GetExeDirectory().size()) + defaultFilename + ext; + #else + memcardPath = File::GetUserPath(D_GCUSER_IDX) + defaultFilename + ext; + #endif } else { |
