Added a bunch of logs for debugging

This commit is contained in:
Antoine Pilote
2023-09-27 19:52:09 -04:00
parent 02fc2c8d08
commit 51fc92f523
6 changed files with 13 additions and 3 deletions

View File

@@ -105,6 +105,7 @@ namespace Nuake
bool Project::Deserialize(const json& j)
{
Logger::Log("Starting deserializing project", "window", CRITICAL);
if (!j.contains("Name") || !j.contains("Description"))
return false;
@@ -137,6 +138,7 @@ namespace Nuake
if (!FileSystem::FileExists(scenePath))
return true;
Logger::Log("Starting deserializing scene", "window", CRITICAL);
std::string sceneContent = FileSystem::ReadFile(scenePath, false);
if (!DefaultScene->Deserialize(nlohmann::json::parse(sceneContent)))
{