windows build fixes
Some checks failed
demo.yaml / windows build fixes (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2026-03-01 15:35:26 +01:00
commit 5db7a74047

View file

@ -38,8 +38,13 @@ namespace Crafter {
std::cout << "bruh3" << std::endl; std::cout << "bruh3" << std::endl;
std::ifstream f(this->path); std::ifstream f(this->path);
std::cout << this->path << std::endl; std::cout << this->path << std::endl;
nlohmann::json data = nlohmann::json::parse(f); nlohmann::json data;
std::cout << "bruh4" << std::endl; try {
data = nlohmann::json::parse(f);
} catch(std::exception& e) {
std::cout << e.what() << std::endl;
}
std::cout << "bruh4" << std::endl;
name = data["name"].get<std::string>(); name = data["name"].get<std::string>();
this->path.remove_filename(); this->path.remove_filename();