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

Function GetMenuInitWorld

engine/Poseidon/IO/ParamFileExt.cpp:235–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235RString GetMenuInitWorld()
236{
237 RString initWorld = Pars >> "CfgWorlds" >> "initWorld";
238 RString demoWorld = Pars >> "CfgWorlds" >> "demoWorld";
239 const bool preferDemoWorld = GApp && GApp->UseDemoWorld();
240 const bool initWorldExists = MenuWorldLandscapeExists(initWorld);
241 const bool demoWorldExists = MenuWorldLandscapeExists(demoWorld);
242
243 RString selected = SelectMenuInitWorld(initWorld, demoWorld, preferDemoWorld, initWorldExists, demoWorldExists);
244 if (!preferDemoWorld && selected != initWorld)
245 {
246 LOG_INFO(Core, "Menu intro world '{}' missing; using configured demoWorld '{}'", (const char*)initWorld,
247 (const char*)selected);
248 }
249 return selected;
250}
251
252static RString PathFirstFolder(const char* path)
253{

Callers 2

StartIntroMethod · 0.85
StartRandomCutsceneFunction · 0.85

Calls 3

MenuWorldLandscapeExistsFunction · 0.85
SelectMenuInitWorldFunction · 0.85
UseDemoWorldMethod · 0.80

Tested by

no test coverage detected