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

@@ -61,12 +61,15 @@ namespace Nuake {
EditorInterface::EditorInterface()
{
Logger::Log("Creating editor windows", "window", CRITICAL);
filesystem = new FileSystemUI(this);
_WelcomeWindow = new WelcomeWindow(this);
_audioWindow = new AudioWindow();
Logger::Log("Building fonts", "window", CRITICAL);
BuildFonts();
Logger::Log("Loading imgui from mem", "window", CRITICAL);
using namespace Nuake::StaticResources;
ImGui::LoadIniSettingsFromMemory((const char*)StaticResources::Resources_default_layout_ini);
}
@@ -1853,8 +1856,10 @@ namespace Nuake {
auto project = Project::New();
auto projectFileData = FileSystem::ReadFile(projectPath, true);
Logger::Log("Reading file project: " + projectFileData, "window", CRITICAL);
try
{
Logger::Log("Starting deserializing", "window", CRITICAL);
project->Deserialize(json::parse(projectFileData));
project->FullPath = projectPath;