mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- fixed: The 'load' command in GAMEINFO only worked if the filename contained a slash.
This commit is contained in:
parent
efa9e0c3ee
commit
4e53df8bca
1 changed files with 14 additions and 10 deletions
|
@ -1807,19 +1807,23 @@ static FString ParseGameInfo(TArray<FString> &pwads, const char *fn, const char
|
||||||
// Try looking for the wad in the same directory as the .wad
|
// Try looking for the wad in the same directory as the .wad
|
||||||
// before looking for it in the current directory.
|
// before looking for it in the current directory.
|
||||||
|
|
||||||
|
FString checkpath;
|
||||||
if (lastSlash != NULL)
|
if (lastSlash != NULL)
|
||||||
{
|
{
|
||||||
FString checkpath(fn, (lastSlash - fn) + 1);
|
checkpath = FString(fn, (lastSlash - fn) + 1);
|
||||||
checkpath += sc.String;
|
checkpath += sc.String;
|
||||||
|
}
|
||||||
if (!FileExists (checkpath))
|
else
|
||||||
{
|
{
|
||||||
pos += D_AddFile(pwads, sc.String, true, pos);
|
checkpath = sc.String;
|
||||||
}
|
}
|
||||||
else
|
if (!FileExists(checkpath))
|
||||||
{
|
{
|
||||||
pos += D_AddFile(pwads, checkpath, true, pos);
|
pos += D_AddFile(pwads, sc.String, true, pos);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pos += D_AddFile(pwads, checkpath, true, pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (sc.CheckToken(','));
|
while (sc.CheckToken(','));
|
||||||
|
|
Loading…
Reference in a new issue