[Project64] Fix up location of native saves
This commit is contained in:
parent
77bc7ddea9
commit
e8505da649
|
@ -143,13 +143,11 @@ void CEeprom::LoadEeprom()
|
||||||
{
|
{
|
||||||
memset(m_EEPROM, 0xFF, sizeof(m_EEPROM));
|
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))
|
if (g_Settings->LoadBool(Setting_UniqueSaveDir))
|
||||||
{
|
{
|
||||||
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
|
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
|
||||||
}
|
}
|
||||||
FileName.SetName(g_Settings->LoadStringVal(Game_GameName).c_str());
|
|
||||||
FileName.SetExtension("eep");
|
|
||||||
|
|
||||||
if (!FileName.DirectoryExists())
|
if (!FileName.DirectoryExists())
|
||||||
{
|
{
|
||||||
|
|
|
@ -120,13 +120,11 @@ uint32_t CFlashram::ReadFromFlashStatus(uint32_t PAddr)
|
||||||
|
|
||||||
bool CFlashram::LoadFlashram()
|
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))
|
if (g_Settings->LoadBool(Setting_UniqueSaveDir))
|
||||||
{
|
{
|
||||||
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
|
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
|
||||||
}
|
}
|
||||||
FileName.SetName(g_Settings->LoadStringVal(Game_GameName).c_str());
|
|
||||||
FileName.SetExtension("fla");
|
|
||||||
|
|
||||||
if (!FileName.DirectoryExists())
|
if (!FileName.DirectoryExists())
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,13 +23,11 @@ CSram::~CSram()
|
||||||
|
|
||||||
bool CSram::LoadSram()
|
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))
|
if (g_Settings->LoadBool(Setting_UniqueSaveDir))
|
||||||
{
|
{
|
||||||
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
|
FileName.AppendDirectory(g_Settings->LoadStringVal(Game_UniqueSaveDir).c_str());
|
||||||
}
|
}
|
||||||
FileName.SetName(g_Settings->LoadStringVal(Game_GameName).c_str());
|
|
||||||
FileName.SetExtension("sra");
|
|
||||||
|
|
||||||
if (!FileName.DirectoryExists())
|
if (!FileName.DirectoryExists())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue