mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- allow specifying startup .con files via GAMEINFO.
This commit is contained in:
parent
4fe3c50c7c
commit
b5dbc3cf29
3 changed files with 5 additions and 5 deletions
|
@ -9,11 +9,11 @@ struct FStartupInfo
|
|||
uint32_t FgColor; // Foreground color for title banner
|
||||
uint32_t BkColor; // Background color for title banner
|
||||
FString Song;
|
||||
FString con;
|
||||
int Type;
|
||||
int LoadLights = -1;
|
||||
int LoadBrightmaps = -1;
|
||||
int LoadWidescreen = -1;
|
||||
int modern = 0;
|
||||
enum
|
||||
{
|
||||
DefaultStartup,
|
||||
|
|
|
@ -757,7 +757,7 @@ static TArray<GrpEntry> SetupGame()
|
|||
if (ugroup.FileInfo.gamefilter.IsNotEmpty()) LumpFilter = ugroup.FileInfo.gamefilter;
|
||||
g_gameType |= ugroup.FileInfo.flags;
|
||||
}
|
||||
if (userConfig.DefaultCon.IsEmpty()) userConfig.DefaultCon = selectedScript;
|
||||
if (userConfig.DefaultCon.IsEmpty()) userConfig.DefaultCon = GameStartupInfo.con.IsNotEmpty()? GameStartupInfo.con : selectedScript;
|
||||
if (userConfig.DefaultDef.IsEmpty()) userConfig.DefaultDef = selectedDef;
|
||||
|
||||
// This can only happen with a custom game that does not define any filter.
|
||||
|
|
|
@ -122,10 +122,10 @@ static TArray<FString> ParseGameInfo(TArray<FString>& pwads, const char* fn, con
|
|||
sc.MustGetString();
|
||||
GameStartupInfo.BkColor = V_GetColor(NULL, sc);
|
||||
}
|
||||
else if (!nextKey.CompareNoCase("MODERN"))
|
||||
else if (!nextKey.CompareNoCase("CON"))
|
||||
{
|
||||
sc.MustGetNumber();
|
||||
GameStartupInfo.modern = sc.Number ? 1 : -1;
|
||||
sc.MustGetString();
|
||||
GameStartupInfo.con = sc.String;;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue