mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- Fixed: FWadCollection::AddFile() did not call FixPathSeperator(), so
savegames would hold the full file path for wads that had been specified with backslash characters, because GetWadName() would not trim off the path. SVN r1994 (trunk)
This commit is contained in:
parent
a97f22bfcd
commit
f305b2f70c
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
November 23, 2009
|
||||
- Fixed: FWadCollection::AddFile() did not call FixPathSeperator(), so
|
||||
savegames would hold the full file path for wads that had been specified
|
||||
with backslash characters, because GetWadName() would not trim off the
|
||||
path.
|
||||
|
||||
November 22, 2009 (Changes by Graf Zahl)
|
||||
- extended Doom map format linedef translator so that it also handles the flags.
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ int FWadCollection::AddExternalFile(const char *filename)
|
|||
// [RH] Removed reload hack
|
||||
//==========================================================================
|
||||
|
||||
void FWadCollection::AddFile (const char *filename, FileReader *wadinfo)
|
||||
void FWadCollection::AddFile (char *filename, FileReader *wadinfo)
|
||||
{
|
||||
int startlump;
|
||||
bool isdir = false;
|
||||
|
@ -252,6 +252,7 @@ void FWadCollection::AddFile (const char *filename, FileReader *wadinfo)
|
|||
return;
|
||||
}
|
||||
}
|
||||
FixPathSeperator(filename);
|
||||
}
|
||||
|
||||
Printf (" adding %s", filename);
|
||||
|
|
|
@ -154,7 +154,7 @@ public:
|
|||
enum { IWAD_FILENUM = 1 };
|
||||
|
||||
void InitMultipleFiles (wadlist_t **filenames);
|
||||
void AddFile (const char *filename, FileReader *wadinfo = NULL);
|
||||
void AddFile (char *filename, FileReader *wadinfo = NULL);
|
||||
int CheckIfWadLoaded (const char *name);
|
||||
|
||||
const char *GetWadName (int wadnum) const;
|
||||
|
|
Loading…
Reference in a new issue