update cmake

This commit is contained in:
2026-01-11 13:13:45 -05:00
parent bd3fdbf930
commit a39a816ea9
4 changed files with 173 additions and 177 deletions
+7 -1
View File
@@ -65,10 +65,16 @@ namespace anm2ed::anm2
XMLDocument document;
document.InsertFirstChild(to_element(document));
if (!std::filesystem::exists(path))
{
if (errorString) *errorString = localize.get(ERROR_FILE_NOT_FOUND);
return false;
}
File file(path, "wb");
if (!file)
{
if (errorString) *errorString = localize.get(ERROR_FILE_NOT_FOUND);
if (errorString) *errorString = localize.get(ERROR_FILE_PERMISSIONS);
return false;
}