2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 03:07:41 +00:00

Implement hecl package

This commit is contained in:
Jack Andersen
2017-10-24 21:46:32 -10:00
parent a5b7a7b96c
commit b7208bfc5f
14 changed files with 374 additions and 198 deletions

View File

@@ -3,6 +3,7 @@
#include "ToolBase.hpp"
#include <stdio.h>
#include "hecl/ClientProcess.hpp"
class ToolCook final : public ToolBase
{
@@ -136,16 +137,13 @@ public:
int run()
{
hecl::ClientProcess cp(m_info.verbosityLevel, m_fast, m_info.force);
for (const hecl::ProjectPath& path : m_selectedItems)
{
int lineIdx = 0;
m_useProj->cookPath(path,
[&lineIdx](const hecl::SystemChar* message,
const hecl::SystemChar* submessage,
int lidx, float factor)
{ToolPrintProgress(message, submessage, lidx, factor, lineIdx);},
m_recursive, m_info.force, m_fast);
m_useProj->cookPath(path, {}, m_recursive, m_info.force, m_fast, &cp);
}
cp.waitUntilComplete();
return 0;
}
};