Working config file also configures the build and git dir.

This commit is contained in:
Zed A. Shaw 2024-08-26 19:32:39 -04:00
parent 90f4f727ba
commit eb6c7b0e33
6 changed files with 29 additions and 28 deletions

View file

@ -3,19 +3,11 @@
int main(int argc, char *argv[])
{
if(argc != 3) {
fmt::println("USAGE: escape_turings_tarpit PATH BUILD_CMD");
return 1;
} else {
const char *git_path = argv[1];
const char *build_cmd = argv[2];
GUI gui;
GameEngine game{100};
GUI gui;
GameEngine game{100};
auto builder = Builder(gui, game);
builder.run();
auto builder = Builder(gui, game);
builder.run(git_path, build_cmd);
return 1;
}
return 1;
}