- fixed: In case no game data can be found, the config needs to be written, to ensure there is one for editing.

This commit is contained in:
Christoph Oelckers 2019-11-03 10:51:47 +01:00
parent 94aa556953
commit d7e7c516a0
2 changed files with 9 additions and 5 deletions

View file

@ -372,6 +372,7 @@ int CONFIG_Init()
if (groups.Size() == 0)
{
// Abort if no game data found.
G_SaveConfig();
I_Error("Unable to find any game data. Please verify your settings.");
}

View file

@ -130,6 +130,14 @@ static void G_AddSteamPaths(TArray<FString> &searchpaths, const char *basepath)
AddSearchPath(searchpaths, path);
#endif
path.Format("%s/steamapps/common/Blood", basepath);
AddSearchPath(searchpaths, path);
// Blood: One Unit Whole Blood
path.Format("%s/steamapps/common/One Unit Whole Blood", basepath);
AddSearchPath(searchpaths, path);
}
@ -1020,11 +1028,6 @@ TArray<GrpEntry> GrpScan()
SaveCRCs(cachedCRCs);
}
// Do we have anything left? If not, error out
if (foundGames.Size() == 0)
{
I_Error("No supported games found. Please check your search paths.");
}
return foundGames;
}