Example #1
0
void CVarManager::loadFromDb(sqlite3x::sqlite3_reader &reader)
{
	while (reader.read())
	{
		std::string name = reader.getstring(0);
		std::string value = reader.getstring(1);

		CVar* temp = findItem(name.c_str());

		if (temp)
			temp->setValueOveride(value.c_str());
	}
}
Example #2
0
		void load(CVar& var, const char* szVal)
		{
			var.setValueOveride(szVal, true);
		}