diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
commit | 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (patch) | |
tree | fd9c441b796b522bdd5c7f8fbd32f51b8eff2a28 /source/utility/asset_unpacker.cpp | |
parent | 14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff) |
The Formatting String Catastrophe
Diffstat (limited to 'source/utility/asset_unpacker.cpp')
-rw-r--r-- | source/utility/asset_unpacker.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/utility/asset_unpacker.cpp b/source/utility/asset_unpacker.cpp index d4d4f6d..487d0b7 100644 --- a/source/utility/asset_unpacker.cpp +++ b/source/utility/asset_unpacker.cpp @@ -10,7 +10,7 @@ int main(int argc, char** argv) { double startTime = Time::monotonicTime(); if (argc != 3) { - cerrf("Usage: %s <assets pak path> <target output directory>\n", argv[0]); + cerrf("Usage: {} <assets pak path> <target output directory>\n", argv[0]); cerrf("If the target output directory does not exist it will be created\n"); return 1; } @@ -35,8 +35,8 @@ int main(int argc, char** argv) { File::makeDirectoryRecursive(relativeDir); File::writeFile(fileData, relativePath); } catch (AssetSourceException const& e) { - cerrf("Could not open file: %s\n", file); - cerrf("Reason: %s\n", outputException(e, false)); + cerrf("Could not open file: {}\n", file); + cerrf("Reason: {}\n", outputException(e, false)); } } @@ -44,10 +44,10 @@ int main(int argc, char** argv) { if (!metadata.empty()) File::writeFile(Json(move(metadata)).printJson(2), "_metadata"); - coutf("Unpacked assets to %s in %ss\n", outputFolderPath, Time::monotonicTime() - startTime); + coutf("Unpacked assets to {} in {}s\n", outputFolderPath, Time::monotonicTime() - startTime); return 0; } catch (std::exception const& e) { - cerrf("Exception caught: %s\n", outputException(e, true)); + cerrf("Exception caught: {}\n", outputException(e, true)); return 1; } } |