module
SettingsAdds and manages settings.
Initially, parses settings from the Arguments resource. Then, the file at settings.path
is loaded, as a JSON file. If the file does not exist, it is created. If it can't be parsed, the plugin aborts. Previously set settings will be overriden, and file settings will be overriden by command line arguments.
Settings
settings.path
- path of the settings file (default:./settings.json
).
Resources
- Settings - holds the settings.
Files
- file plugin.hpp
- Plugin entry point.
Functions
-
auto settingsPlugin(Cubos& cubos) -> CUBOS_
ENGINE_ API void - Plugin entry function.
Function documentation
CUBOS_ ENGINE_ API void settingsPlugin(Cubos& cubos)
#include <engine/settings/plugin.hpp>
Plugin entry function.
Parameters | |
---|---|
cubos | Cubos main class |