| 217 | } |
| 218 | |
| 219 | static 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 | |
| 235 | RString GetMenuInitWorld() |
| 236 | { |
no test coverage detected