mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 00:20:51 +00:00
Fix two different portable names
M_GetConfigPath uses GAMENAMELOWERCASE_portable.ini, but IsPortable() checks for GAMENAME_portable.ini. Doesn't have much of an impact on base GZDoom since it's case-insensitive, but can matter for engine forks -- IMO it should just be consistent either way.
This commit is contained in:
parent
bf39002515
commit
45796505de
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ bool IsPortable()
|
||||||
}
|
}
|
||||||
|
|
||||||
// A portable INI means that this storage location should also be portable if the file can be written to.
|
// A portable INI means that this storage location should also be portable if the file can be written to.
|
||||||
FStringf path("%s" GAMENAME "_portable.ini", progdir.GetChars());
|
FStringf path("%s" GAMENAMELOWERCASE "_portable.ini", progdir.GetChars());
|
||||||
if (FileExists(path))
|
if (FileExists(path))
|
||||||
{
|
{
|
||||||
file = CreateFile(path.WideString().c_str(), GENERIC_READ | GENERIC_WRITE, 0, NULL,
|
file = CreateFile(path.WideString().c_str(), GENERIC_READ | GENERIC_WRITE, 0, NULL,
|
||||||
|
|
Loading…
Reference in a new issue