MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / MenuWorldLandscapeExists

Function MenuWorldLandscapeExists

engine/Poseidon/IO/ParamFileExt.cpp:219–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static bool MenuWorldLandscapeExists(RString worldClass)
220{
221 if (worldClass.GetLength() == 0)
222 return false;
223
224 const ParamEntry* entry = (Pars >> "CfgWorlds").FindEntry(worldClass);
225 if (!entry)
226 return false;
227
228 RString world = (*entry) >> "worldName";
229 if (world.GetLength() == 0)
230 return false;
231
232 return QIFStreamB::FileExist(GetDefaultName(world, "worlds\\", ".wrp"));
233}
234
235RString GetMenuInitWorld()
236{

Callers 1

GetMenuInitWorldFunction · 0.85

Calls 3

GetDefaultNameFunction · 0.85
GetLengthMethod · 0.45
FindEntryMethod · 0.45

Tested by

no test coverage detected