blob: 70a57a9a1c112baada1f5c5a79b78746e0cad070 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifdef OPENVIC_HEADLESS_SIM
#include <iostream>
#include <string>
#include "openvic/Simulation.hpp"
#include "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
|