mirror of https://github.com/AxioDL/metaforce.git
Fix cook tool crash
This commit is contained in:
parent
61f744e15d
commit
3f45710fb2
|
@ -168,9 +168,8 @@ public:
|
|||
{
|
||||
hecl::MultiProgressPrinter printer(true);
|
||||
hecl::ClientProcess cp(&printer);
|
||||
for (int i=0 ; i<m_spec->m_numCookPasses ; ++i)
|
||||
for (const hecl::ProjectPath& path : m_selectedItems)
|
||||
m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp, i);
|
||||
for (const hecl::ProjectPath& path : m_selectedItems)
|
||||
m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp);
|
||||
cp.waitUntilComplete();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ void ClientProcess::Worker::proc()
|
|||
ClientProcess::ThreadWorker.reset(this);
|
||||
|
||||
char thrName[64];
|
||||
snprintf(thrName, 64, "HECL Worker%d", m_idx);
|
||||
snprintf(thrName, 64, "HECL Worker %d", m_idx);
|
||||
logvisor::RegisterThreadName(thrName);
|
||||
|
||||
std::unique_lock<std::mutex> lk(m_proc.m_mutex);
|
||||
|
|
Loading…
Reference in New Issue