![]() |
Blamite Game Engine - Blam (Core)
|
#include "components\core\config\config.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <codecvt>
#include "components\core\engine_definitions\engine_definitions.h"
#include "components\core\logger\logger.h"
#include "components\core\utils\converters\converters.h"
#include "components\core\utils\string\string.h"
#include "components\core\utils\io\io.h"
#include "components\core\placeholders\placeholders.h"
#include "components/core/utils/res/res.h"
#include "res/resource.h"
Functions | |
int | loadConfigMain (std::string filename, bool load_defaults, int defaults_resource_id, const char *defaults_res_type) |
Main function to load a configuration file. More... | |
int loadConfigMain | ( | std::string | filename, |
bool | load_defaults, | ||
int | defaults_resource_id, | ||
const char * | defaults_res_type | ||
) |
Main function to load a configuration file.
This function is called from the other LoadConfig() functions.
filename | - The path to the configuration file |
load_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. |
defaults_res_type | - The type of resource that the default configuration file is stored in. Should almost always be "CFG" |