| 193 | #endif |
| 194 | |
| 195 | RString 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 | |
| 207 | RString SelectMenuInitWorld(RString initWorld, RString demoWorld, bool preferDemoWorld, bool initWorldExists, |
| 208 | bool demoWorldExists) |
no test coverage detected