Game Project
Loading...
Searching...
No Matches
ConfigManager Class Reference

Public Member Functions

bool Load (const std::string &config_location)
 Loads the config file from a given path, and stores it in the structs of this class.
 
bool Save ()
 Saves the config stored in the current struct to the config location.
 
WindowConfigGetWindowConfig ()
 Returns the saved config of the window.
 

Member Function Documentation

◆ GetWindowConfig()

WindowConfig & ConfigManager::GetWindowConfig ( )

Returns the saved config of the window.

Returns
window_config_&, the current config in memory

◆ Load()

bool ConfigManager::Load ( const std::string & config_location)

Loads the config file from a given path, and stores it in the structs of this class.

Parameters
config_location
Returns
true if loaded correctly, otherwise false

◆ Save()

bool ConfigManager::Save ( )

Saves the config stored in the current struct to the config location.

Returns
true if it ran correctly, false otherwise

The documentation for this class was generated from the following files: