mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-15 14:05:52 +00:00
Fix cook tool crash
This commit is contained in:
parent
61f744e15d
commit
3f45710fb2
@ -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, i);
|
m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp);
|
||||||
cp.waitUntilComplete();
|
cp.waitUntilComplete();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user