SaveState backup: 1. Now enabled by default. 2. Now uses rename instead of copy (faster, more resilient to corruptions)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4891 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
avihal 2011-08-30 06:33:05 +00:00
parent 09af07d954
commit dcb7c08a5b
2 changed files with 2 additions and 1 deletions

View File

@ -373,6 +373,7 @@ Pcsx2Config::Pcsx2Config()
// Set defaults for fresh installs / reset settings
McdEnableEjection = true;
EnablePatches = true;
BackupSavestate = true;
}
void Pcsx2Config::LoadSave( IniInterface& ini )

View File

@ -661,7 +661,7 @@ void StateCopy_SaveToSlot( uint num )
const wxString copy( SaveStateBase::GetFilename( num ) + pxsFmt( L".backup") );
Console.Indent().WriteLn( Color_StrongGreen, L"Backing up existing state in slot %d.", num);
wxCopyFile( file, copy );
wxRenameFile( file, copy );
}
Console.WriteLn( Color_StrongGreen, "Saving savestate to slot %d...", num );