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:27:38 +01:00
commit 645f64ad33

View file

@ -35,8 +35,10 @@ namespace Crafter {
throw std::runtime_error(std::format("Project file: {} not found.", this->path.generic_string())); throw std::runtime_error(std::format("Project file: {} not found.", this->path.generic_string()));
} }
std::cout << "bruh3" << std::endl;
std::ifstream f(this->path); std::ifstream f(this->path);
nlohmann::json data = nlohmann::json::parse(f); nlohmann::json data = nlohmann::json::parse(f);
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();