diff options
author | ClarkeCode <clarke.john.robert@gmail.com> | 2023-06-14 05:36:50 +0200 |
---|---|---|
committer | ClarkeCode <clarke.john.robert@gmail.com> | 2023-06-14 06:17:33 +0200 |
commit | 5433008d163e7e85cd7ee668e769c649e318f491 (patch) | |
tree | 882da720d16e1b26ec6577beda5d8d54bd40c235 /headless_main.cpp | |
parent | 8710cb9b7967de2201b5c440593aab2df310f33d (diff) |
Dataloading skeleton
Diffstat (limited to 'headless_main.cpp')
-rw-r--r-- | headless_main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/headless_main.cpp b/headless_main.cpp new file mode 100644 index 0000000..20d89ee --- /dev/null +++ b/headless_main.cpp @@ -0,0 +1,22 @@ +#ifdef OPENVIC_HEADLESS_SIM +#include <iostream> +#include <string> +#include "src/openvic/Simulation.hpp" +#include "src/openvic/dataloader/Dataloader.hpp" + + +int main() { + std::cout << "HEADLESS SIMULATION" << std::endl; + + + std::string vic2FolderLocation = ""; + if (vic2FolderLocation.length() <= 0) { + std::cout << "Path to Victoria 2 folder not specified. Manually specify location: "; + std::cin >> vic2FolderLocation; + } + std::filesystem::path path(vic2FolderLocation); + + OpenVic::Simulation sim; + std::cout << (OpenVic::Dataloader::loadDir(path, sim) ? "Dataloader suceeded" : "Dataloader failed") << std::endl; +} +#endif
\ No newline at end of file |