This commit is contained in:
parent
aa89b8b034
commit
645f64ad33
1 changed files with 2 additions and 0 deletions
|
|
@ -35,8 +35,10 @@ namespace Crafter {
|
|||
throw std::runtime_error(std::format("Project file: {} not found.", this->path.generic_string()));
|
||||
}
|
||||
|
||||
std::cout << "bruh3" << std::endl;
|
||||
std::ifstream f(this->path);
|
||||
nlohmann::json data = nlohmann::json::parse(f);
|
||||
std::cout << "bruh4" << std::endl;
|
||||
name = data["name"].get<std::string>();
|
||||
|
||||
this->path.remove_filename();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue