Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/ConfigDB.h
Show All 27 Lines | |||||
#define INCLUDED_CONFIGDB | #define INCLUDED_CONFIGDB | ||||
#include "lib/file/vfs/vfs_path.h" | #include "lib/file/vfs/vfs_path.h" | ||||
#include "ps/CStr.h" | #include "ps/CStr.h" | ||||
#include "ps/Singleton.h" | #include "ps/Singleton.h" | ||||
#include <map> | #include <map> | ||||
// Namespace priorities: User supersedes mod supersedes system. | /** | ||||
// Command-line arguments override everything. | * Namespace priorities: | ||||
* - Command line args override everything | |||||
* - User supersedes HWDetect (let the user try crashing his system). | |||||
* - HWDetect supersedes mods & default -> mods can mod hwdetect itself. | |||||
* - SYSTEM is used for local.cfg and is basically for setting custom defaults. | |||||
*/ | |||||
enum EConfigNamespace | enum EConfigNamespace | ||||
{ | { | ||||
CFG_DEFAULT, | CFG_DEFAULT, | ||||
CFG_SYSTEM, | |||||
CFG_MOD, | CFG_MOD, | ||||
CFG_SYSTEM, | |||||
CFG_HWDETECT, | |||||
CFG_USER, | CFG_USER, | ||||
CFG_COMMAND, | CFG_COMMAND, | ||||
CFG_LAST | CFG_LAST | ||||
}; | }; | ||||
typedef std::vector<CStr> CConfigValueSet; | typedef std::vector<CStr> CConfigValueSet; | ||||
#define g_ConfigDB CConfigDB::GetSingleton() | #define g_ConfigDB CConfigDB::GetSingleton() | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator