Can now unload a Config by config:unload()

This commit is contained in:
BenDol
2014-04-02 02:34:12 +13:00
parent 2d84fae2c8
commit 8b3f3b11f0
4 changed files with 11 additions and 2 deletions

View File

@@ -117,9 +117,13 @@ bool ConfigManager::unload(const std::string& file)
ConfigPtr config = get(file);
if(config) {
config->unload();
m_configs.remove(config);
config = nullptr;
return true;
}
return false;
}
void ConfigManager::remove(const ConfigPtr config)
{
m_configs.remove(config);
}