- 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
|
|
@ -306,14 +306,14 @@ int FTextureManager::CountBuildTiles ()
|
|||
FString artpath = rffpath;
|
||||
artpath += artfile;
|
||||
|
||||
FileReader fr;
|
||||
FileRdr fr;
|
||||
|
||||
if (!fr.Open(artpath))
|
||||
if (!fr.OpenFile(artpath))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
long len = fr.GetLength();
|
||||
auto len = fr.GetLength();
|
||||
uint8_t *art = new uint8_t[len];
|
||||
if (fr.Read (art, len) != len || (numtiles = CountTiles(art)) == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue