aboutsummaryrefslogtreecommitdiff
path: root/src/headless/main.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-01-17 23:24:39 +0100
committer hop311 <hop3114@gmail.com>2024-01-18 23:29:40 +0100
commite33a330129364b4bd632b2fd531a996b8c57cefb (patch)
tree88365260addebee9d3ac798d484e02ab18f56692 /src/headless/main.cpp
parentb5783116f67c9f7aa9d8d9653e6bda0227f67cd2 (diff)
Parse missing variables, Logger counting, misc cleanup
Diffstat (limited to 'src/headless/main.cpp')
-rw-r--r--src/headless/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/headless/main.cpp b/src/headless/main.cpp
index 7f33314..a6c4914 100644
--- a/src/headless/main.cpp
+++ b/src/headless/main.cpp
@@ -131,9 +131,10 @@ int main(int argc, char const* argv[]) {
return -1;
}
}
- Dataloader::path_vector_t roots = { root };
+ Dataloader::path_vector_t roots { root };
while (argn < argc) {
- roots.emplace_back(root / argv[argn++]);
+ static const fs::path mod_directory = "mod";
+ roots.emplace_back(root / mod_directory / argv[argn++]);
}
std::cout << "!!! HEADLESS SIMULATION START !!!" << std::endl;
@@ -144,5 +145,8 @@ int main(int argc, char const* argv[]) {
std::cout << "\nLoad returned: " << (ret ? "SUCCESS" : "FAILURE") << std::endl;
+ std::cout << "\nLogger Summary: Info = " << Logger::get_info_count() << ", Warning = " << Logger::get_warning_count()
+ << ", Error = " << Logger::get_error_count() << std::endl;
+
return ret ? 0 : -1;
}