Cleanup the engine since I won't do the brainfuck thing, then fix up the log a bit.

This commit is contained in:
Zed A. Shaw 2024-09-02 16:13:21 -04:00
parent 8edb37ceb4
commit fdb3f24377
6 changed files with 11 additions and 159 deletions

View file

@ -66,12 +66,12 @@ void Builder::run_build() {
string type = err[4].str();
string message = err[5].str();
string result = format("{:%FT%T},{},{},{},{},{}\n",
string result = format("{:%FT%T},{},{},{},{},{}",
fmt::localtime(tstamp), file_name,
lnumber, col, type, message);
stats_out << result;
gui.output(format("\nHIT WITH {} @ {}:{}:{} {}", type, file_name, lnumber, col, message));
gui.output(format("HIT WITH {} @ {}:{}:{} {}", type, file_name, lnumber, col, message));
game.hit(type);
@ -112,7 +112,7 @@ void Builder::run() {
UpdateListener* listener = new UpdateListener(repo);
dbc::check(listener != nullptr, "Failed to create listener.");
gui.output(format("Watching directory {} for changes...\n", git_path));
gui.output(format("Watching directory {} for changes...", git_path));
efsw::WatchID wid = fileWatcher->addWatch(git_path, listener, true);
int rc = gui.main_loop(game, [&] {