mirror of
https://github.com/AxioDL/nod.git
synced 2025-05-17 12:51:31 +00:00
Linux build fixes
This commit is contained in:
parent
27a2cb5998
commit
69e96e3b3c
@ -61,13 +61,13 @@ int main(int argc, char* argv[])
|
|||||||
outDir = argv[a];
|
outDir = argv[a];
|
||||||
}
|
}
|
||||||
|
|
||||||
auto progFunc = [&](float prog, const nod::SystemString& name, size_t bytes)
|
auto progFunc = [&](float prog, nod::SystemStringView name, size_t bytes)
|
||||||
{
|
{
|
||||||
nod::Printf(_S("\r "));
|
nod::Printf(_S("\r "));
|
||||||
if (bytes != -1)
|
if (bytes != -1)
|
||||||
nod::Printf(_S("\r%g%% %s %" PRISize " B"), prog * 100.f, name.c_str(), bytes);
|
nod::Printf(_S("\r%g%% %s %" PRISize " B"), prog * 100.f, name.data(), bytes);
|
||||||
else
|
else
|
||||||
nod::Printf(_S("\r%g%% %s"), prog * 100.f, name.c_str());
|
nod::Printf(_S("\r%g%% %s"), prog * 100.f, name.data());
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
nod::SystemString outPath(argv[2]);
|
nod::SystemString outPath(argv[2]);
|
||||||
outPath.append(_S(".iso"));
|
outPath.append(_S(".iso"));
|
||||||
nod::DiscBuilderGCN b(outPath.c_str(), progFunc);
|
nod::DiscBuilderGCN b(outPath, progFunc);
|
||||||
ret = b.buildFromDirectory(argv[2]);
|
ret = b.buildFromDirectory(argv[2]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user