mirror of
https://github.com/BernardoGiordano/Checkpoint
synced 2024-11-15 06:07:06 +00:00
use fsCommit only when copying file to save archive
This commit is contained in:
parent
491e65126d
commit
911375a63b
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue