![]() |
Blamite Game Engine - blam!
00272.10.26.20.0001.blamite
The core library for the Blamite Game Engine.
|
#include "config.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <codecvt>
#include <Strings/components/utils/converters/converters.h>
#include <Strings/components/utils/string/string.h>
#include <Strings/components/utils/io/io.h>
#include <Strings/components/utils/res/res.h>
#include "components/resources/engine_definitions/engine_definitions.h"
#include "components/diagnostics/logger/logger.h"
#include "components/settings/placeholders/placeholders.h"
#include "res/resource.h"
#include "core.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" |