Exemple #1
0
void CConfiguration::cfcbSearchPaths(NLMISC::CConfigFile::CVar &var)
{
	uint varsize = var.size();
	//CPath::clearMap();
	for (uint i = 0; i < varsize; ++i)
		CPath::addSearchPath(var.asString(i), true, false);
}
void CGraphicsConfig::cfcbGraphicsDrivers(NLMISC::CConfigFile::CVar &var)
{
	while (m_Driver->count())
		m_Driver->removeItem(0);
	for (uint i = 0; i < var.size(); ++i)
		m_Driver->addItem(var.asString(i).c_str());
	cfcbGraphicsDriver(m_Configuration->getConfigFile().getVar("GraphicsDriver"));
	m_UndoStack->clear();
}