mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2025-03-31 11:20:19 +02:00
Support both ModExt.txt and ModEXT.txt
This commit is contained in:
parent
882c7773b5
commit
1b895d7478
@ -169,7 +169,13 @@ void InitStreams(void)
|
|||||||
}
|
}
|
||||||
// find eventual extension for the mod's dlls
|
// find eventual extension for the mod's dlls
|
||||||
_strModExt = "";
|
_strModExt = "";
|
||||||
LoadStringVar(CTString("ModEXT.txt"), _strModExt);
|
// DG: apparently both ModEXT.txt and ModExt.txt exist in the wild.
|
||||||
|
CTFileName tmp;
|
||||||
|
if(ExpandFilePath(EFP_READ, CTString("ModEXT.txt"), tmp) != EFP_NONE) {
|
||||||
|
LoadStringVar(CTString("ModEXT.txt"), _strModExt);
|
||||||
|
} else {
|
||||||
|
LoadStringVar(CTString("ModExt.txt"), _strModExt);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
CPrintF(TRANSV("Loading group files...\n"));
|
CPrintF(TRANSV("Loading group files...\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user