When renaming, don't change extension

This commit is contained in:
Ted John committed 2016-10-22 22:36:45 +01:00
1 parent 7834afb34a
commit cdc45a2848
1 file changed
+1 -1
+1 -1
View File
@@ -153,7 +153,7 @@ public:
utf8 newPath[MAX_PATH];
Path::GetDirectory(newPath, sizeof(newPath), path);
Path::Append(newPath, sizeof(newPath), newName);
Path::Append(newPath, sizeof(newPath), ".td6");
Path::Append(newPath, sizeof(newPath), Path::GetExtension(path));
if (platform_file_move(path, newPath))
{