mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Made it possible to open projects directly from the .project file
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user