Additional resource logging

This commit is contained in:
Jack Andersen 2017-02-14 22:29:23 -10:00
parent a13c702d1f
commit 4b262f60c8
2 changed files with 11 additions and 3 deletions

View File

@ -434,6 +434,7 @@ hecl::ProjectPath ProjectResourceFactoryBase::GetCookedPath(const hecl::ProjectP
bool ProjectResourceFactoryBase::SyncCook(const hecl::ProjectPath& working) bool ProjectResourceFactoryBase::SyncCook(const hecl::ProjectPath& working)
{ {
Log.report(logvisor::Warning, _S("sync-cooking %s"), working.getRelativePath().c_str());
return m_clientProc.syncCook(working, m_cookSpec.get(), hecl::SharedBlenderToken); return m_clientProc.syncCook(working, m_cookSpec.get(), hecl::SharedBlenderToken);
} }
@ -452,10 +453,17 @@ CFactoryFnReturn ProjectResourceFactoryBase::BuildSync(const SObjectTag& tag,
{ {
u32 length = fr->length(); u32 length = fr->length();
std::unique_ptr<u8[]> memBuf = fr->readUBytes(length); std::unique_ptr<u8[]> memBuf = fr->readUBytes(length);
return m_factoryMgr.MakeObjectFromMemory(tag, std::move(memBuf), length, false, paramXfer, selfRef); CFactoryFnReturn ret =
m_factoryMgr.MakeObjectFromMemory(tag, std::move(memBuf), length, false, paramXfer, selfRef);
Log.report(logvisor::Info, "sync-built %.4s %08X",
tag.type.toString().c_str(), u32(tag.id));
return ret;
} }
return m_factoryMgr.MakeObject(tag, *fr, paramXfer, selfRef); CFactoryFnReturn ret = m_factoryMgr.MakeObject(tag, *fr, paramXfer, selfRef);
Log.report(logvisor::Info, "sync-built %.4s %08X",
tag.type.toString().c_str(), u32(tag.id));
return ret;
} }
void ProjectResourceFactoryBase::AsyncTask::EnsurePath(const urde::SObjectTag& tag, void ProjectResourceFactoryBase::AsyncTask::EnsurePath(const urde::SObjectTag& tag,

2
hecl

@ -1 +1 @@
Subproject commit 720f175217cb5ebeb987497317f34fa50e9ab55f Subproject commit 3f93118da852508ae40c79d2ba87fedaed1013aa