Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set the default memory card path as relative too.
  • Loading branch information
RachelBryk committed Jan 21, 2013
1 parent 83237a3 commit 45a7fa2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Core/Core/Src/CoreParameter.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit 45a7fa2

Please sign in to comment.