| 1587 | } |
| 1588 | |
| 1589 | const TileSet* ConfigManager::getTileSet(const std::string& tileSetName) const |
| 1590 | { |
| 1591 | if(tileSetName.empty()) |
| 1592 | return mTileSets.at(DEFAULT_TILESET_NAME); |
| 1593 | |
| 1594 | auto it = mTileSets.find(tileSetName); |
| 1595 | if(it == mTileSets.end()) |
| 1596 | { |
| 1597 | OD_LOG_ERR("Cannot find requested tileset name=" + tileSetName); |
| 1598 | // We return the default tileset |
| 1599 | return mTileSets.at(DEFAULT_TILESET_NAME); |
| 1600 | } |
| 1601 | |
| 1602 | return it->second; |
| 1603 | } |
| 1604 | |
| 1605 | bool ConfigManager::initVideoConfig(Ogre::Root& ogreRoot) |
| 1606 | { |