- sound code and most of texture code converted to FileRdr.
This allowed to remove a lot of bad pointer voodoo in the music loader, because the new class does not allow duplication of the reader object
This commit is contained in:
parent
26e948357e
commit
5fa63c396d
46 changed files with 333 additions and 307 deletions
|
|
@ -70,7 +70,7 @@ protected:
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
static bool CheckIfRaw(FileReader & data)
|
||||
static bool CheckIfRaw(FileRdr & data)
|
||||
{
|
||||
if (data.GetLength() != 64000) return false;
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ static bool CheckIfRaw(FileReader & data)
|
|||
int width;
|
||||
|
||||
foo = (patch_t *)M_Malloc (data.GetLength());
|
||||
data.Seek (0, SEEK_SET);
|
||||
data.Seek (0, FileRdr::SeekSet);
|
||||
data.Read (foo, data.GetLength());
|
||||
|
||||
height = LittleShort(foo->height);
|
||||
|
|
@ -148,7 +148,7 @@ static bool CheckIfRaw(FileReader & data)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
FTexture *RawPageTexture_TryCreate(FileReader & file, int lumpnum)
|
||||
FTexture *RawPageTexture_TryCreate(FileRdr & file, int lumpnum)
|
||||
{
|
||||
if (!CheckIfRaw(file)) return NULL;
|
||||
return new FRawPageTexture(lumpnum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue