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

Function SelectMenuInitWorld

engine/Poseidon/IO/ParamFileExt.cpp:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207RString SelectMenuInitWorld(RString initWorld, RString demoWorld, bool preferDemoWorld, bool initWorldExists,
208 bool demoWorldExists)
209{
210 if (preferDemoWorld && demoWorld.GetLength() > 0)
211 return demoWorld;
212
213 if (initWorldExists || demoWorld.GetLength() == 0 || !demoWorldExists)
214 return initWorld;
215
216 return demoWorld;
217}
218
219static bool MenuWorldLandscapeExists(RString worldClass)
220{

Callers 2

GetMenuInitWorldFunction · 0.85

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected