Fixed 32 bit issues
This commit is contained in:
parent
9eec95a161
commit
a2fdf98498
|
|
@ -847,12 +847,12 @@ typedef struct {
|
|||
typedef struct {
|
||||
/* 0x00 */ s16 numEntries;
|
||||
/* 0x02 */ s16 unkMediumParam;
|
||||
/* 0x04 */ uintptr_t romAddr;
|
||||
/* 0x04 */ u64 romAddr;
|
||||
/* 0x08 */ char pad[8];
|
||||
} AudioTableBase;
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ uintptr_t romAddr;
|
||||
/* 0x00 */ u64 romAddr;
|
||||
/* 0x04 */ u32 size;
|
||||
/* 0x08 */ s8 medium;
|
||||
/* 0x09 */ s8 cachePolicy;
|
||||
|
|
|
|||
|
|
@ -713,7 +713,7 @@ void* AudioLoad_AsyncLoadInner(s32 tableType, s32 id, s32 nChunks, s32 retData,
|
|||
u8* ramAddr;
|
||||
s32 medium;
|
||||
s32 cachePolicy;
|
||||
u32 romAddr;
|
||||
u64 romAddr;
|
||||
s32 loadStatus = LOAD_STATUS_COMPLETE;
|
||||
|
||||
switch (tableType) {
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryAudioTableV0::ReadResource
|
|||
int16_t sd3 = reader->ReadInt16();
|
||||
|
||||
table->mEntries.push_back({
|
||||
(uintptr_t) crc,
|
||||
size, medium, policy, sd1, sd2, sd3
|
||||
crc, size, medium,
|
||||
policy, sd1, sd2, sd3
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ namespace SF64 {
|
|||
struct AudioTableBase {
|
||||
/* 0x00 */ int16_t numEntries;
|
||||
/* 0x02 */ int16_t unkMediumParam;
|
||||
/* 0x04 */ uintptr_t romAddr;
|
||||
/* 0x04 */ uint64_t romAddr;
|
||||
/* 0x08 */ char pad[8];
|
||||
};
|
||||
|
||||
struct AudioTableEntry {
|
||||
/* 0x00 */ uintptr_t romAddr;
|
||||
/* 0x00 */ uint64_t romAddr;
|
||||
/* 0x04 */ uint32_t size;
|
||||
/* 0x08 */ int8_t medium;
|
||||
/* 0x09 */ int8_t cachePolicy;
|
||||
|
|
|
|||
Loading…
Reference in New Issue