- 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:
parent
56991a9ace
commit
b315bc3be0
9 changed files with 25 additions and 21 deletions
|
|
@ -121,15 +121,15 @@ void M_FindResponseFile (void)
|
|||
if (added_stuff < limit)
|
||||
{
|
||||
// READ THE RESPONSE FILE INTO MEMORY
|
||||
FileReader fr;
|
||||
if (!fr.Open(Args->GetArg(i) + 1))
|
||||
FileRdr fr;
|
||||
if (!fr.OpenFile(Args->GetArg(i) + 1))
|
||||
{ // [RH] Make this a warning, not an error.
|
||||
Printf ("No such response file (%s)!\n", Args->GetArg(i) + 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Printf ("Found response file %s!\n", Args->GetArg(i) + 1);
|
||||
size = fr.GetLength();
|
||||
size = (int)fr.GetLength();
|
||||
file = new char[size+1];
|
||||
fr.Read (file, size);
|
||||
file[size] = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue