mirror of
https://github.com/zeldaret/tmc
synced 2026-05-27 08:09:06 -04:00
moved asset_processor to new location
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#include "util.h"
|
||||
#include <iostream>
|
||||
|
||||
void check_call(const std::vector<std::string>& cmd) {
|
||||
std::string cmdstr;
|
||||
bool first = true;
|
||||
for (const auto& segment : cmd) {
|
||||
if (first) {
|
||||
first = false;
|
||||
} else {
|
||||
cmdstr += " ";
|
||||
}
|
||||
cmdstr += segment;
|
||||
}
|
||||
int code = system(cmdstr.c_str());
|
||||
if (code != 0) {
|
||||
std::cerr << cmdstr << " failed with return code " << code << std::endl;
|
||||
std::exit(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user