2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-15 09:25:52 +00:00

Fix cook tool crash

This commit is contained in:
Jack Andersen 2018-06-15 16:26:30 -10:00
parent 61f744e15d
commit 3f45710fb2
2 changed files with 3 additions and 4 deletions

View File

@ -168,9 +168,8 @@ public:
{ {
hecl::MultiProgressPrinter printer(true); hecl::MultiProgressPrinter printer(true);
hecl::ClientProcess cp(&printer); hecl::ClientProcess cp(&printer);
for (int i=0 ; i<m_spec->m_numCookPasses ; ++i) for (const hecl::ProjectPath& path : m_selectedItems)
for (const hecl::ProjectPath& path : m_selectedItems) m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp);
m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp, i);
cp.waitUntilComplete(); cp.waitUntilComplete();
return 0; return 0;
} }

View File

@ -72,7 +72,7 @@ void ClientProcess::Worker::proc()
ClientProcess::ThreadWorker.reset(this); ClientProcess::ThreadWorker.reset(this);
char thrName[64]; char thrName[64];
snprintf(thrName, 64, "HECL Worker%d", m_idx); snprintf(thrName, 64, "HECL Worker %d", m_idx);
logvisor::RegisterThreadName(thrName); logvisor::RegisterThreadName(thrName);
std::unique_lock<std::mutex> lk(m_proc.m_mutex); std::unique_lock<std::mutex> lk(m_proc.m_mutex);