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

Function GetWorldName

engine/Poseidon/IO/ParamFileExt.cpp:195–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193#endif
194
195RString GetWorldName(RString baseName)
196{
197 const ParamEntry* entry = (Pars >> "CfgWorlds").FindEntry(baseName);
198 if (!entry)
199 {
200 baseName = Pars >> "CfgWorlds" >> "initWorld";
201 entry = (Pars >> "CfgWorlds").FindEntry(baseName);
202 }
203 RString world = (*entry) >> "worldName";
204 return GetDefaultName(world, "worlds\\", ".wrp");
205}
206
207RString SelectMenuInitWorld(RString initWorld, RString demoWorld, bool preferDemoWorld, bool initWorldExists,
208 bool demoWorldExists)

Callers 15

ReloadViewerCoreMethod · 0.85
PrepareGameMethod · 0.85
OnGameStateMessageMethod · 0.85
SimulateDSMethod · 0.85
RetryMissionMethod · 0.85
DisplayIntroMethod · 0.85
DisplayOutroMethod · 0.85
DisplayAwardMethod · 0.85
DisplayCampaignIntroMethod · 0.85
OpenEditorFunction · 0.85
StartAutoTestFunction · 0.85
DisplayWizardMapMethod · 0.85

Calls 2

GetDefaultNameFunction · 0.85
FindEntryMethod · 0.45

Tested by

no test coverage detected