diff --git a/DataSpec/DNACommon/NamedResourceCatalog.hpp b/DataSpec/DNACommon/NamedResourceCatalog.hpp index 3d848ede7..4ce7cda8a 100644 --- a/DataSpec/DNACommon/NamedResourceCatalog.hpp +++ b/DataSpec/DNACommon/NamedResourceCatalog.hpp @@ -8,7 +8,7 @@ template struct NamedResourceCatalog : BigYAML { Delete _d; - Value namedResCount; + Value namedResCount = 0; struct NamedResource : BigYAML { Delete _d; diff --git a/Editor/ProjectResourceFactory.cpp b/Editor/ProjectResourceFactory.cpp index 6c540b3ce..eb70c4513 100644 --- a/Editor/ProjectResourceFactory.cpp +++ b/Editor/ProjectResourceFactory.cpp @@ -21,9 +21,9 @@ void ProjectResourceFactory::BuildObjectMap(const HECL::Database::Project::Proje { m_resPaths.clear(); m_namedResources.clear(); - HECL::SystemString catalogPath = HECL::ProjectPath(spec.cookedPath, std::string(spec.spec.m_name) + "/catalog.yaml").getAbsolutePath(); + HECL::SystemString catalogPath = HECL::ProjectPath(spec.cookedPath, HECL::SystemString(spec.spec.m_name) + _S("/catalog.yaml")).getAbsolutePath(); FILE* catalogFile = HECL::Fopen(catalogPath.c_str(), _S("r")); - if (!HECL::StrCmp(spec.spec.m_name, "MP3")) + if (!HECL::StrCmp(spec.spec.m_name, _S("MP3"))) { DataSpec::NamedResourceCatalog catalog; if (catalogFile) diff --git a/Editor/ProjectResourceFactory.hpp b/Editor/ProjectResourceFactory.hpp index 7d40fe2c4..22cfa974a 100644 --- a/Editor/ProjectResourceFactory.hpp +++ b/Editor/ProjectResourceFactory.hpp @@ -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) { diff --git a/Runtime/Particle/CDecalDataFactory.cpp b/Runtime/Particle/CDecalDataFactory.cpp index b6264daae..a35fdd1ce 100644 --- a/Runtime/Particle/CDecalDataFactory.cpp +++ b/Runtime/Particle/CDecalDataFactory.cpp @@ -1,6 +1,10 @@ #include "CDecalDataFactory.hpp" #include "CDecalDescription.hpp" +#include "CGenDescription.hpp" +#include "CSwooshDescription.hpp" +#include "CElectricDescription.hpp" #include "CParticleDataFactory.hpp" +#include "CModel.hpp" #include "CSimplePool.hpp" #include "CRandom16.hpp" @@ -35,10 +39,10 @@ bool CDecalDataFactory::CreateDPSM(CDecalDescription* desc, CInputStream& in, CS CGlobalRandom gr{rand}; FourCC clsId = CPF::GetClassID(in); - while(clsId != SBIG('_END')) + while (clsId != SBIG('_END')) { bool loadFirstDesc = false; - switch(clsId) + switch (clsId) { case SBIG('1SZE'): case SBIG('1LFT'): @@ -100,7 +104,7 @@ bool CDecalDataFactory::CreateDPSM(CDecalDescription* desc, CInputStream& in, CS void CDecalDataFactory::GetQuadDecalInfo(CInputStream& in, CSimplePool* resPool, FourCC clsId, SQuadDescr& quad) { - switch(clsId) + switch (clsId) { case SBIG('1LFT'): case SBIG('2LFT'): diff --git a/hecl b/hecl index 5fa984eba..47e723844 160000 --- a/hecl +++ b/hecl @@ -1 +1 @@ -Subproject commit 5fa984eba8c87a974fba3c5f621747f2cd6982fc +Subproject commit 47e72384415a5062cc0358512a272fc939aa1514 diff --git a/libSpecter b/libSpecter index 0deeec94c..bb78a2055 160000 --- a/libSpecter +++ b/libSpecter @@ -1 +1 @@ -Subproject commit 0deeec94cc838c5e3a4f094fee0ca9fd1d524de3 +Subproject commit bb78a20553ea665c0ec301404dce0c6753b8eb09