Function Blam::Config::LoadConfig(std::string, bool, int)¶
Defined in File config.h
Function Documentation¶
-
int
Blam::Config::LoadConfig(std::string filename, bool load_defaults, int defaults_resource_id) Loads a configuration file from the specified path.
Resource type is assumed to be
"CFG".- 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.defaults_resource_id: - The resource ID that refers to the file containing the default configuration file contents.