Common/FileUtil: Rename Copy() to CopyRegularFile().

This is to clarify that it can only copy files, not folders.
This commit is contained in:
Admiral H. Curtiss
2023-02-22 01:54:41 +01:00
parent 3c4a21315d
commit e52aa52a66
6 changed files with 13 additions and 13 deletions

View File

@ -1432,7 +1432,7 @@ void SaveRecording(const std::string& filename)
if (success && s_bRecordingFromSaveState)
{
std::string stateFilename = filename + ".sav";
success = File::Copy(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav", stateFilename);
success = File::CopyRegularFile(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav", stateFilename);
}
if (success)