Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_ConfigDB.cpp
Show All 39 Lines | bool JSI_ConfigDB::IsProtectedConfigName(const std::string& name) | ||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
bool JSI_ConfigDB::GetConfigNamespace(const std::wstring& cfgNsString, EConfigNamespace& cfgNs) | bool JSI_ConfigDB::GetConfigNamespace(const std::wstring& cfgNsString, EConfigNamespace& cfgNs) | ||||
{ | { | ||||
if (cfgNsString == L"default") | if (cfgNsString == L"default") | ||||
cfgNs = CFG_DEFAULT; | cfgNs = CFG_DEFAULT; | ||||
else if (cfgNsString == L"system") | |||||
cfgNs = CFG_SYSTEM; | |||||
else if (cfgNsString == L"user") | |||||
cfgNs = CFG_USER; | |||||
else if (cfgNsString == L"mod") | else if (cfgNsString == L"mod") | ||||
cfgNs = CFG_MOD; | cfgNs = CFG_MOD; | ||||
else if (cfgNsString == L"user") | |||||
cfgNs = CFG_USER; | |||||
else if (cfgNsString == L"hwdetect") | |||||
cfgNs = CFG_HWDETECT; | |||||
elexis: and here | |||||
else | else | ||||
{ | { | ||||
LOGERROR("Invalid namespace name passed to the ConfigDB!"); | LOGERROR("Invalid namespace name passed to the ConfigDB!"); | ||||
cfgNs = CFG_DEFAULT; | cfgNs = CFG_DEFAULT; | ||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
and here