blob: 0ce0eda9efc5df379a249972dca7d634ffd3fd89 (
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 = "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Victoria 2";
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
|