mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Set the default memory card path as relative too.
This commit is contained in:
parent
83237a36e0
commit
45a7fa293b
@ -348,7 +348,11 @@ void SCoreStartupParameter::CheckMemcardPath(std::string& memcardPath, std::stri
|
|||||||
{
|
{
|
||||||
// Use default memcard path if there is no user defined name
|
// Use default memcard path if there is no user defined name
|
||||||
std::string defaultFilename = isSlotA ? GC_MEMCARDA : GC_MEMCARDB;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user