Add the ability to set individual commandline options at the expense of a generic Lua script

Note breaking change: Previously `--config` specified one or more Lua scripts that were executed to update the configuration state, now the `--config` sets the path to the window configuration instead
This commit is contained in:
Alexander Bock
2023-11-07 16:19:59 +01:00
parent 01acbc0e48
commit eeb536c9e1
9 changed files with 81 additions and 704 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ struct Configuration {
std::filesystem::path findConfiguration(const std::string& filename = "openspace.cfg");
Configuration loadConfigurationFromFile(const std::filesystem::path& filename,
const glm::ivec2& primaryMonitorResolution, std::string_view overrideScript);
const glm::ivec2& primaryMonitorResolution);
} // namespace openspace::configuration
+5 -2
View File
@@ -64,8 +64,11 @@ struct ShutdownInformation {
};
struct CommandlineArguments {
std::string configurationName;
std::vector<std::string> configurationOverride;
std::optional<std::string> configuration;
std::optional<std::string> windowConfig;
std::optional<std::string> profile;
std::optional<std::string> propertyVisibility;
std::optional<bool> bypassLauncher;
};
class OpenSpaceEngine : public properties::PropertyOwner {