From 5433008d163e7e85cd7ee668e769c649e318f491 Mon Sep 17 00:00:00 2001 From: ClarkeCode Date: Tue, 13 Jun 2023 23:36:50 -0400 Subject: Dataloading skeleton --- headless_main.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 headless_main.cpp (limited to 'headless_main.cpp') 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 +#include +#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 -- cgit v1.2.3-56-ga3b1