diff --git a/source/core/gamecontrol.cpp b/source/core/gamecontrol.cpp index aacd51b24..21e2f1dde 100644 --- a/source/core/gamecontrol.cpp +++ b/source/core/gamecontrol.cpp @@ -722,6 +722,24 @@ static TArray SetupGame() } foundit: + // If the user has specified a script, let's see if we know it. + // + if (groupno == -1 && userConfig.DefaultCon.Len()) + { + FString DefaultConlower = userConfig.DefaultCon.MakeLower(); + + int g = 0; + for (auto& grp : groups) + { + if (grp.FileInfo.scriptname.MakeLower() == DefaultConlower) + { + groupno = g; + break; + } + g++; + } + } + // If the user has specified a file name, let's see if we know it. // if (groupno == -1 && userConfig.gamegrp.Len())