add something, at least, in place of the deleted memset code
This commit is contained in:
parent
09ea476892
commit
f8778ef3f2
|
@ -149,6 +149,11 @@ bool FS_NITRO::loadFileTables()
|
|||
if (numOverlay7 && !ovr7) return false;
|
||||
if (numOverlay9 && !ovr9) return false;
|
||||
|
||||
delete[] fat;
|
||||
delete[] fnt;
|
||||
fat = new FAT_NITRO[numFiles];
|
||||
fnt = new FNT_NITRO[numDirs];
|
||||
|
||||
// ========= FAT (File Allocation Table)
|
||||
u32 *_FAT = (u32*)(rom + FATOff);
|
||||
for (u32 i = 0; i < numFiles; i++)
|
||||
|
|
|
@ -37,6 +37,17 @@ enum FNT_TYPES
|
|||
#include "PACKED.h"
|
||||
struct FAT_NITRO
|
||||
{
|
||||
FAT_NITRO()
|
||||
: start(0)
|
||||
, end(0)
|
||||
, size(0)
|
||||
, parentOffset(0)
|
||||
, isOverlay(false)
|
||||
, file(false)
|
||||
, sizeFile(0)
|
||||
, parentID(0)
|
||||
{
|
||||
}
|
||||
u32 start;
|
||||
u32 end;
|
||||
u32 size;
|
||||
|
@ -57,6 +68,12 @@ struct FNT_MAIN
|
|||
|
||||
struct FNT_NITRO
|
||||
{
|
||||
FNT_NITRO()
|
||||
: offset(0)
|
||||
, firstID(0)
|
||||
, parentID(0)
|
||||
{
|
||||
}
|
||||
u32 offset;
|
||||
u16 firstID;
|
||||
u16 parentID;
|
||||
|
|
Loading…
Reference in New Issue