2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Remaining object tracker platforms

This commit is contained in:
Jack Andersen
2017-11-05 20:56:17 -10:00
parent d2fda8a373
commit a3b9a32633
7 changed files with 22 additions and 16 deletions

View File

@@ -187,7 +187,7 @@ bool Project::ConfigFile::unlockAndCommit()
{
#if HECL_UCS2
//_wrename(newPath.c_str(), m_filepath.c_str());
ReplaceFileW(m_filepath.c_str(), newPath.c_str(), nullptr, 0, nullptr, nullptr);
MoveFileExW(newPath.c_str(), m_filepath.c_str(), MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH);
#else
rename(newPath.c_str(), m_filepath.c_str());
#endif