preliminary utf-16 stuff
This commit is contained in:
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace anm2ed::anm2
|
||||
class Anm2
|
||||
{
|
||||
public:
|
||||
bool isValid{true};
|
||||
Info info{};
|
||||
Content content{};
|
||||
Animations animations{};
|
||||
|
||||
Reference in New Issue
Block a user