mirror of
https://github.com/edubart/otclient.git
synced 2025-12-17 06:07:11 +01:00
Can now unload a Config by config:unload()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user