aboutsummaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
Diffstat (limited to 'src/headless')
-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;
}