ref: 389f56158e8163edb5c07129e2e67716b2c02114
parent: bc35d8cbcb47cefe392e7baf8057397137c868bc
author: Acts 19 quiz <N/A>
date: Thu Jan 27 13:17:44 EST 2022
Add boolean check for IsFrenchIWAD.
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1183,6 +1183,14 @@
I_Endoom(endoom);
}
+boolean IsFrenchIWAD(void)
+{
+ return (gamemission == doom2 && W_CheckNumForName("M_RDTHIS") < 0
+ && W_CheckNumForName("M_EPISOD") < 0 && W_CheckNumForName("M_EPI1") < 0
+ && W_CheckNumForName("M_EPI2") < 0 && W_CheckNumForName("M_EPI3") < 0
+ && W_CheckNumForName("WIOSTF") < 0 && W_CheckNumForName("WIOBJ") >= 0);
+}
+
// Load dehacked patches needed for certain IWADs.
static void LoadIwadDeh(void)
{
@@ -1241,8 +1249,7 @@
}
}
- if (gamemission == doom2 && W_CheckNumForName("M_RDTHIS") < 0 && W_CheckNumForName("M_EPISOD") < 0 && W_CheckNumForName("M_EPI1") < 0
- && W_CheckNumForName("M_EPI2") < 0 && W_CheckNumForName("M_EPI3") < 0 && W_CheckNumForName("WIOSTF") < 0 && W_CheckNumForName("WIOBJ") >= 0)
+ if (IsFrenchIWAD())
{
char *french_deh = NULL;
char *dirname;