diff options
| author | Henny022p <info@henny022.de> | 2021-11-23 20:22:22 +0100 |
|---|---|---|
| committer | Henny022p <info@henny022.de> | 2021-11-23 20:22:22 +0100 |
| commit | 794d5fc97cb01a70c8579dc08962b667edf5a29e (patch) | |
| tree | f1655a0b50bf25b9cebc2849f6da520599d933e9 /tools/src/asset_processor/util.cpp | |
| parent | dee773da4a12af1c48bf58d6275fe4fed20871b6 (diff) | |
cleaned asset_processor to build without warnings
Diffstat (limited to 'tools/src/asset_processor/util.cpp')
| -rw-r--r-- | tools/src/asset_processor/util.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/src/asset_processor/util.cpp b/tools/src/asset_processor/util.cpp index f6ac050f..a0effa3c 100644 --- a/tools/src/asset_processor/util.cpp +++ b/tools/src/asset_processor/util.cpp @@ -1,5 +1,6 @@ #include "util.h" #include <iostream> +#include <fmt/format.h> void check_call(const std::vector<std::string>& cmd) { std::string cmdstr; @@ -18,3 +19,10 @@ void check_call(const std::vector<std::string>& cmd) { std::exit(1); } } + +std::string opt_param(const std::string& format, int defaultVal, int value) { + if (value != defaultVal) { + return fmt::format(format, value); + } + return ""; +} |
