Function Blam::Config::LoadConfig(std::string, bool)¶
Defined in File config.h
Function Documentation¶
-
int
Blam::Config
::
LoadConfig
(std::string filename, bool load_defaults) Loads a configuration file from the specified path.
Resource type is assumed to be
"CFG"
, and resource ID is set to 0. Will error ifload_defaults
is set to true.TODO: Remove this shit
- Return
- Will return negative if the file failed to load, will return 0 if file was loaded without error.
- Parameters
filename
: - The path to the configuration fileload_defaults
: - Whether or not to load defaults from an embedded resource.