GCMemcard: Use BigEndianValue for DEntry.m_modification_time.
This commit is contained in:
parent
2f1ff80dd6
commit
1d25e249e8
|
@ -436,7 +436,7 @@ u32 GCMemcard::DEntry_ModTime(u8 index) const
|
||||||
if (!m_valid || index >= DIRLEN)
|
if (!m_valid || index >= DIRLEN)
|
||||||
return 0xFFFFFFFF;
|
return 0xFFFFFFFF;
|
||||||
|
|
||||||
return BE32(CurrentDir->m_dir_entries[index].m_modification_time);
|
return CurrentDir->m_dir_entries[index].m_modification_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 GCMemcard::DEntry_ImageOffset(u8 index) const
|
u32 GCMemcard::DEntry_ImageOffset(u8 index) const
|
||||||
|
|
|
@ -187,10 +187,11 @@ struct DEntry
|
||||||
// 11 ? maybe ==00? Time Splitters 2 and 3 have it and don't have banner
|
// 11 ? maybe ==00? Time Splitters 2 and 3 have it and don't have banner
|
||||||
//
|
//
|
||||||
u8 m_filename[DENTRY_STRLEN]; // 0x08 0x20 Filename
|
u8 m_filename[DENTRY_STRLEN]; // 0x08 0x20 Filename
|
||||||
u8 m_modification_time[4]; // 0x28 0x04 Time of file's last modification in seconds since
|
Common::BigEndianValue<u32>
|
||||||
// 12am, January 1st, 2000
|
m_modification_time; // 0x28 0x04 Time of file's last modification in seconds since
|
||||||
u8 m_image_offset[4]; // 0x2c 0x04 image data offset
|
// 12am, January 1st, 2000
|
||||||
u8 m_icon_format[2]; // 0x30 0x02 icon gfx format (2bits per icon)
|
u8 m_image_offset[4]; // 0x2c 0x04 image data offset
|
||||||
|
u8 m_icon_format[2]; // 0x30 0x02 icon gfx format (2bits per icon)
|
||||||
// Bits Description
|
// Bits Description
|
||||||
// 00 No icon
|
// 00 No icon
|
||||||
// 01 CI8 with a shared color palette after the last frame
|
// 01 CI8 with a shared color palette after the last frame
|
||||||
|
|
Loading…
Reference in New Issue