CommonHostInterface: Add save state backup option

This commit is contained in:
Connor McLaughlin
2021-07-03 16:48:35 +10:00
parent 53cabbb134
commit 24306be757
4 changed files with 34 additions and 0 deletions

View File

@ -404,6 +404,9 @@ protected:
/// Returns the path to a save state file. Specifying an index of -1 is the "resume" save state.
std::string GetGlobalSaveStateFileName(s32 slot) const;
/// Moves the current save state file to a backup name, if it exists.
void RenameCurrentSaveStateToBackup(const char* filename);
/// Sets the base path for the user directory. Can be overridden by platform/frontend/command line.
virtual void SetUserDirectory();