| 17 | }; |
| 18 | |
| 19 | static bool OpenMap(const char pMapName[64], CDataFileReader &InputMap) |
| 20 | { |
| 21 | std::unique_ptr<IStorage> pStorage = CreateLocalStorage(); |
| 22 | if(!pStorage) |
| 23 | { |
| 24 | log_error("map_find_env", "Error creating local storage"); |
| 25 | return false; |
| 26 | } |
| 27 | |
| 28 | if(!InputMap.Open(pStorage.get(), pMapName, IStorage::TYPE_ABSOLUTE)) |
| 29 | { |
| 30 | dbg_msg("map_find_env", "ERROR: unable to open map '%s'", pMapName); |
| 31 | return false; |
| 32 | } |
| 33 | return true; |
| 34 | } |
| 35 | |
| 36 | static bool GetLayerGroupIds(CDataFileReader &InputMap, const int LayerNumber, int &GroupId, int &LayerRelativeId) |
| 37 | { |
no test coverage detected