mirror of
https://github.com/zeldaret/tmc
synced 2026-05-29 08:43:06 -04:00
cleaned asset_processor to build without warnings
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user