Battle.net: Implemented cache stream items

This commit is contained in:
Shauren
2014-10-13 17:22:24 +02:00
parent 42f5017261
commit 1ef31ba752
10 changed files with 186 additions and 6 deletions

View File

@@ -51,7 +51,8 @@ void Battlenet::ModuleManager::Load()
Battlenet::ModuleInfo* Battlenet::ModuleManager::CreateModule(std::string const& os, std::string const& name) const
{
ModuleKey key { os, name };
ASSERT(_modules.count(key));
if (!_modules.count(key))
return nullptr;
return new ModuleInfo(*_modules.at(key));
}