mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- 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:
parent
94aa556953
commit
d7e7c516a0
2 changed files with 9 additions and 5 deletions
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue