use fsCommit only when copying file to save archive

This commit is contained in:
BernardoGiordano 2018-05-12 21:07:24 +02:00
parent 491e65126d
commit 911375a63b

View file

@ -63,7 +63,10 @@ void io::copyFile(const std::string& srcPath, const std::string& dstPath)
fclose(dst);
// commit each file to the save
fsdevCommitDevice("save");
if (dstPath.rfind("save:/", 0) == 0)
{
fsdevCommitDevice("save");
}
}
Result io::copyDirectory(const std::string& srcPath, const std::string& dstPath)