mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
09af07d954
commit
dcb7c08a5b
|
@ -373,6 +373,7 @@ Pcsx2Config::Pcsx2Config()
|
|||
// Set defaults for fresh installs / reset settings
|
||||
McdEnableEjection = true;
|
||||
EnablePatches = true;
|
||||
BackupSavestate = true;
|
||||
}
|
||||
|
||||
void Pcsx2Config::LoadSave( IniInterface& ini )
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue