From 69e96e3b3c069ea38fd315dac4af9c82d3b6774c Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 12 Nov 2017 21:21:29 -1000 Subject: [PATCH] Linux build fixes --- driver/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver/main.cpp b/driver/main.cpp index e3ee123..6c5c42d 100644 --- a/driver/main.cpp +++ b/driver/main.cpp @@ -61,13 +61,13 @@ int main(int argc, char* argv[]) 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 ")); 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 - 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); }; @@ -106,7 +106,7 @@ int main(int argc, char* argv[]) { nod::SystemString outPath(argv[2]); outPath.append(_S(".iso")); - nod::DiscBuilderGCN b(outPath.c_str(), progFunc); + nod::DiscBuilderGCN b(outPath, progFunc); ret = b.buildFromDirectory(argv[2]); } else