mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixwd some GCC problems with d_iwad.cpp.
SVN r2946 (trunk)
This commit is contained in:
parent
0bde8591ee
commit
8806ec294f
1 changed files with 3 additions and 2 deletions
|
@ -233,7 +233,8 @@ void FIWadManager::ParseIWadInfo(const char *fn, const char *data, int datasize)
|
||||||
// check for lowercase, uppercased first letter and full uppercase on Linux etc.
|
// check for lowercase, uppercased first letter and full uppercase on Linux etc.
|
||||||
wadname.ToLower();
|
wadname.ToLower();
|
||||||
mIWadNames.Push(wadname);
|
mIWadNames.Push(wadname);
|
||||||
wadname[0] = toupper(wadname[0]);
|
wadname.LockBuffer()[0] = toupper(wadname[0]);
|
||||||
|
wadname.UnlockBuffer();
|
||||||
mIWadNames.Push(wadname);
|
mIWadNames.Push(wadname);
|
||||||
wadname.ToUpper();
|
wadname.ToUpper();
|
||||||
mIWadNames.Push(wadname);
|
mIWadNames.Push(wadname);
|
||||||
|
@ -331,7 +332,7 @@ int FIWadManager::CheckIWAD (const char *doomwaddir, WadStuff *wads)
|
||||||
{
|
{
|
||||||
FString iwad;
|
FString iwad;
|
||||||
|
|
||||||
iwad.Format ("%s%s%s", doomwaddir, slash, mIWadNames[i]);
|
iwad.Format ("%s%s%s", doomwaddir, slash, mIWadNames[i].GetChars());
|
||||||
FixPathSeperator (iwad);
|
FixPathSeperator (iwad);
|
||||||
if (FileExists (iwad))
|
if (FileExists (iwad))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue