| 61 | } |
| 62 | |
| 63 | MapFormatPtr MapFormatManager::getMapFormatForFilename(const std::string& filename) |
| 64 | { |
| 65 | if (!GlobalGameManager().currentGame()) |
| 66 | { |
| 67 | return MapFormatPtr(); |
| 68 | } |
| 69 | |
| 70 | // Look up the module name which loads the given extension |
| 71 | std::string gameType = GlobalGameManager().currentGame()->getKeyValue("type"); |
| 72 | |
| 73 | return getMapFormatForGameType(gameType, os::getExtension(filename)); |
| 74 | } |
| 75 | |
| 76 | std::set<MapFormatPtr> MapFormatManager::getAllMapFormats() |
| 77 | { |
no test coverage detected