MCPcopy Create free account
hub / github.com/ddnet/ddnet / OpenMaps

Function OpenMaps

src/tools/map_replace_area.cpp:151–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool OpenMaps(IStorage *pStorage, const char aaMapNames[3][64], CDataFileReader aInputMaps[2], CDataFileWriter &OutputMap)
152{
153 for(int i = 0; i < 2; i++)
154 {
155 if(!aInputMaps[i].Open(pStorage, aaMapNames[i], IStorage::TYPE_ABSOLUTE))
156 {
157 dbg_msg("map_replace_area", "ERROR: unable to open map '%s'", aaMapNames[i]);
158 return false;
159 }
160 }
161
162 if(!OutputMap.Open(pStorage, aaMapNames[2], IStorage::TYPE_ABSOLUTE))
163 {
164 dbg_msg("map_replace_area", "ERROR: unable to open map '%s'", aaMapNames[2]);
165 return false;
166 }
167
168 return true;
169}
170
171void SaveOutputMap(CDataFileReader &InputMap, CDataFileWriter &OutputMap)
172{

Callers 1

ReplaceAreaFunction · 0.85

Calls 2

dbg_msgFunction · 0.85
OpenMethod · 0.45

Tested by

no test coverage detected