Made it possible to open projects directly from the .project file

This commit is contained in:
antopilo
2024-09-08 15:01:19 -04:00
parent 219c9a97cd
commit 7c123e1c0a

View File

@@ -95,6 +95,13 @@ LaunchSettings ParseLaunchSettings(const std::vector<std::string>& 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++;
}