- added a few more FileRdr replacements

- fixed: The streaming music player must return the file reader if it fails to open, so that the next player can still use it.
- fixed: Timidity++'s Instruments class did not delete the sound font when it was destroyed.

..-
This commit is contained in:
Christoph Oelckers 2018-03-10 20:33:49 +01:00
commit b315bc3be0
9 changed files with 25 additions and 21 deletions

View file

@ -2492,11 +2492,11 @@ bool D_LoadDehLump(int lumpnum)
bool D_LoadDehFile(const char *patchfile)
{
FileReader fr;
FileRdr fr;
if (fr.Open(patchfile))
if (fr.OpenFile(patchfile))
{
PatchSize = fr.GetLength();
PatchSize = (int)fr.GetLength();
PatchName = copystring(patchfile);
PatchFile = new char[PatchSize + 1];