preliminary utf-16 stuff

This commit is contained in:
2025-12-13 21:54:29 -05:00
parent 1a3c75a84a
commit 31ac9707e7
13 changed files with 155 additions and 97 deletions
+4 -2
View File
@@ -24,20 +24,22 @@ namespace anm2ed::anm2
XMLDocument document;
#ifdef _WIN32
FILE* file = _wfopen(path.native().c_str(), L"wb");
FILE* file = _wfopen(path.native().c_str(), L"rb");
#else
FILE* file = fopen(path.c_str(), "wb");
FILE* file = fopen(path.c_str(), "rb");
#endif
if (!file)
{
if (errorString) *errorString = localize.get(ERROR_FILE_NOT_FOUND);
isValid = false;
return;
}
if (document.LoadFile(file) != XML_SUCCESS)
{
if (errorString) *errorString = document.ErrorStr();
isValid = false;
return;
}
+1
View File
@@ -27,6 +27,7 @@ namespace anm2ed::anm2
class Anm2
{
public:
bool isValid{true};
Info info{};
Content content{};
Animations animations{};