Fixed crash when launching with --play argument caused by invalid root directoy

This commit is contained in:
Antoine Pilote
2023-07-04 03:10:30 -04:00
parent 0d108bc44a
commit 1f6c1467ca

View File

@@ -91,7 +91,7 @@ int main(int argc, char* argv[])
editor.BuildFonts();
Ref<Nuake::Project> project = Nuake::Project::New();
FileSystem::SetRootDirectory(projectPath );
FileSystem::SetRootDirectory(projectPath + "/../");
project->FullPath = projectPath;
project->Deserialize(FileSystem::ReadFile(projectPath, true));