[Project64] Fix up location of native saves

This commit is contained in:
zilmar 2016-09-29 21:30:00 +10:00
parent 77bc7ddea9
commit e8505da649
3 changed files with 3 additions and 9 deletions

View File

@ -143,13 +143,11 @@ void CEeprom::LoadEeprom()
{
memset(m_EEPROM, 0xFF, sizeof(m_EEPROM));
CPath FileName(g_Settings->LoadStringVal(Directory_NativeSave).c_str(), "");
CPath FileName(g_Settings->LoadStringVal(Directory_NativeSave).c_str(), stdstr_f("%s.eep", g_Settings->LoadStringVal(Game_GameName).c_str()).c_str());
if (g_Settings->LoadBool(Setting_UniqueSaveDir))
{
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
}
FileName.SetName(g_Settings->LoadStringVal(Game_GameName).c_str());
FileName.SetExtension("eep");
if (!FileName.DirectoryExists())
{

View File

@ -120,13 +120,11 @@ uint32_t CFlashram::ReadFromFlashStatus(uint32_t PAddr)
bool CFlashram::LoadFlashram()
{
CPath FileName(g_Settings->LoadStringVal(Directory_NativeSave).c_str());
CPath FileName(g_Settings->LoadStringVal(Directory_NativeSave).c_str(), stdstr_f("%s.fla", g_Settings->LoadStringVal(Game_GameName).c_str()).c_str());
if (g_Settings->LoadBool(Setting_UniqueSaveDir))
{
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
}
FileName.SetName(g_Settings->LoadStringVal(Game_GameName).c_str());
FileName.SetExtension("fla");
if (!FileName.DirectoryExists())
{

View File

@ -23,13 +23,11 @@ CSram::~CSram()
bool CSram::LoadSram()
{
CPath FileName(g_Settings->LoadStringVal(Directory_NativeSave).c_str(), "");
CPath FileName(g_Settings->LoadStringVal(Directory_NativeSave).c_str(), stdstr_f("%s.sra", g_Settings->LoadStringVal(Game_GameName).c_str()).c_str());
if (g_Settings->LoadBool(Setting_UniqueSaveDir))
{
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
}
FileName.SetName(g_Settings->LoadStringVal(Game_GameName).c_str());
FileName.SetExtension("sra");
if (!FileName.DirectoryExists())
{