cleaned asset_processor to build without warnings

This commit is contained in:
Henny022p
2021-11-23 20:22:22 +01:00
parent dee773da4a
commit 794d5fc97c
20 changed files with 190 additions and 196 deletions
+8
View File
@@ -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 "";
}