nw::kernel::Config

struct Config

Public Functions

explicit Config() = default
void initialize(ConfigOptions options = {})

Initializes configuration system.

const std::filesystem::path &install_path() const noexcept

Game installation path.

size_t max_resref_length() const

Max resref length.

const ConfigOptions &options() const noexcept

Gets installation info.

void set_paths(const std::filesystem::path install, const std::filesystem::path user)

Sets game paths.

Note

If paths are unset, the kernel will attempt to find them.

void set_version(GameVersion version)

Sets game version.

const std::filesystem::path &user_path() const noexcept

Path to user directory.

GameVersion version() const noexcept

Gets games version.