2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 03:26:10 +00:00

Windows fixes

This commit is contained in:
Jack Andersen
2016-02-24 10:53:26 -10:00
parent e9996034c9
commit eb3679dd88
6 changed files with 16 additions and 8 deletions

View File

@@ -25,7 +25,11 @@ class ProjectResourceFactory : public pshag::IFactory
if (ent.m_name.size() == idLen && ent.m_name[4] == _S('_'))
{
HECL::SystemUTF8View entu8(ent.m_name);
#if _WIN32
u64 id = _strtoui64(entu8.c_str() + 5, nullptr, 16);
#else
u64 id = strtouq(entu8.c_str() + 5, nullptr, 16);
#endif
if (id)
{