Sounds are working...BUT...I have to make ones I own so hang on until I do that.

This commit is contained in:
Zed A. Shaw 2024-08-25 22:09:13 -04:00
parent 7309ec2f40
commit 268d8abf52
5 changed files with 75 additions and 11 deletions

View file

@ -66,7 +66,7 @@ void Builder::run_build(GameEngine &game, const char* command) {
// refactor this
if(game.is_dead()) {
gui.output(format("YOU DIED!\n"));
gui.you_died();
}
}
}
@ -75,9 +75,9 @@ void Builder::run_build(GameEngine &game, const char* command) {
int rc = pclose(build_out);
if(rc == 0) {
gui.output("BUILD FINISHED!");
gui.build_works();
} else {
gui.output(format("!!! BUILD FAILED. Your command correct? '{}'", command));
gui.build_failed(command);
}
stats_out.close();
@ -107,7 +107,7 @@ void Builder::run(const char *git_path, const char *build_cmd) {
fileWatcher->watch();
if(listener->changes) {
gui.output("############# START ############");
gui.building();
std::this_thread::sleep_for(std::chrono::milliseconds(100));
gui.output(format("CHANGES! Running build {}", build_cmd));
run_build(game, build_cmd);