mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user