Function Blam::Config::LoadConfig(std::string, bool)

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 if load_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 file

  • load_defaults: - Whether or not to load defaults from an embedded resource.