- 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:
Randy Heit 2009-11-24 02:26:01 +00:00
commit f305b2f70c
3 changed files with 9 additions and 2 deletions

View file

@ -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);