Commit 8164264
committed
feat(xrGame): Make
Single-player should not hard-require multiplayer configuration under
`gamedata/configs/mp/`.
Previously, `CMapListHelper` always loaded
`$game_config$/mp/map_list.ltx` and asserted that maps/weathers were
present. For SP-only installs or story mods that remove MP configs, that
made startup/save-load fail and also forced expensive archive scanning.
Changes:
- Treat `mp/map_list.ltx` (and its `[weather]` section) as optional: if
missing, log and keep MP map/weather lists empty.
- Remove `R_ASSERT`s and avoid dereferencing null map list entries;
return an empty "unknown" map list when queried.
Notes:
- The LTX/INI loader remains strict and generic (missing `#include`
targets still fail).
- `mp_ranks.ltx` is still expected for NPC weapon ranking; it is not
MP-only.configs/mp optional in single-player1 parent 83ac6bb commit 8164264
1 file changed
+36
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
434 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
435 | 446 | | |
436 | 447 | | |
437 | 448 | | |
| |||
468 | 479 | | |
469 | 480 | | |
470 | 481 | | |
471 | | - | |
472 | | - | |
473 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
474 | 486 | | |
475 | 487 | | |
476 | 488 | | |
477 | 489 | | |
478 | 490 | | |
479 | 491 | | |
480 | 492 | | |
481 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
482 | 503 | | |
483 | 504 | | |
484 | 505 | | |
| |||
496 | 517 | | |
497 | 518 | | |
498 | 519 | | |
499 | | - | |
500 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
501 | 530 | | |
502 | 531 | | |
503 | 532 | | |
| |||
509 | 538 | | |
510 | 539 | | |
511 | 540 | | |
512 | | - | |
| 541 | + | |
513 | 542 | | |
514 | 543 | | |
515 | 544 | | |
0 commit comments