From 7c123e1c0a714987b08d9227ce2fb88c6e6004d0 Mon Sep 17 00:00:00 2001 From: antopilo Date: Sun, 8 Sep 2024 15:01:19 -0400 Subject: [PATCH] Made it possible to open projects directly from the .project file --- Editor/Editor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Editor/Editor.cpp b/Editor/Editor.cpp index a20d6605..87ca7842 100644 --- a/Editor/Editor.cpp +++ b/Editor/Editor.cpp @@ -95,6 +95,13 @@ LaunchSettings ParseLaunchSettings(const std::vector& arguments) launchSettings.monitor = stoi(arguments[i + 1]); } } + else if (argumentSize == 2 && Nuake::FileSystem::FileExists(arg)) + { + if (Nuake::String::EndsWith(arg, ".project")) + { + launchSettings.projectPath = arg; + } + } i++; }