Libretro: Fixed error message when unloading game/core
This commit is contained in:
parent
63fd012686
commit
5a298154f7
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,8 @@ bool SaveStateManager::LoadState(int stateIndex)
|
|||
|
||||
void SaveStateManager::SaveRecentGame(string romName, string romPath, string patchPath)
|
||||
{
|
||||
#ifndef LIBRETRO
|
||||
//Don't do this for libretro core
|
||||
string filename = FolderUtilities::GetFilename(_console->GetRomInfo().RomFile.GetFileName(), false) + ".rgd";
|
||||
ZipWriter writer;
|
||||
writer.Initialize(FolderUtilities::CombinePath(FolderUtilities::GetRecentGamesFolder(), filename));
|
||||
|
@ -212,6 +214,7 @@ void SaveStateManager::SaveRecentGame(string romName, string romPath, string pat
|
|||
romInfoStream << patchPath << std::endl;
|
||||
writer.AddFile(romInfoStream, "RomInfo.txt");
|
||||
writer.Save();
|
||||
#endif
|
||||
}
|
||||
|
||||
void SaveStateManager::LoadRecentGame(string filename, bool resetGame)
|
||||
|
|
Loading…
Add table
Reference in a new issue