Engine » Settings module

Adds 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

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)

Plugin entry function.

Parameters
cubos Cubos main class