mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01: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
|
||||
_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"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user