Skip to content

Commit 2bba7c3

Browse files
committed
Exit with fatal error if any included INI files do not exist
1 parent fce6411 commit 2bba7c3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/Whats-New.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ You can use the migration utility (can be found on [Phobos supplementaries repo]
2121

2222
#### From post-0.3 devbuilds
2323

24+
- Game will now produce fatal error with an error message if any of the files listed in `[$Include]` in any INI file do not exist.
2425
- Aircraft with weapons that have `Strafing.Shots` < 5 will now keep flying after last shot like those with `Strafing.Shots` >= 5 do. This delay can now be customized explicitly by setting `Strafing.EndDelay` on the weapon.
2526
- Selecting weapons other than primary against walls based on `Wall=true` on Warhead etc. now requires `[CombatDamage] -> AllowWeaponSelectAgainstWalls` to be set to true first.
2627
- Lunar theater tileset parsing unhardcoding is now only applied if `lunarmd.ini` has `[General] -> ApplyLunarFixes` set to true.

src/Misc/Hooks.INIInheritance.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ DEFINE_HOOK(0x474230, CCINIClass_Load_Inheritance, 0x5)
248248
CCFileClass file (node.Data->Value);
249249
if (file.Exists())
250250
INIInheritance::LastINIFile->ReadCCFile(&file, false, false);
251+
else
252+
Debug::FatalErrorAndExit("Included INI file %s does not exist", node.Data->Value);
251253
}
252254

253255
return 0;

0 commit comments

Comments
 (0)