Skip to content

Commit

Permalink
Support both ModExt.txt and ModEXT.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGibson committed Jun 6, 2016
1 parent 882c777 commit 1b895d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/Engine/Base/Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 1b895d7

Please sign in to comment.