GCMemcard: Use BigEndianValue for DEntry.m_modification_time.

This commit is contained in:
Admiral H. Curtiss 2018-11-18 17:17:12 +01:00
parent 2f1ff80dd6
commit 1d25e249e8
2 changed files with 6 additions and 5 deletions

View file

@ -436,7 +436,7 @@ u32 GCMemcard::DEntry_ModTime(u8 index) const
if (!m_valid || index >= DIRLEN)
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

View file

@ -187,10 +187,11 @@ struct DEntry
// 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_modification_time[4]; // 0x28 0x04 Time of file's last modification in seconds since
// 12am, January 1st, 2000
u8 m_image_offset[4]; // 0x2c 0x04 image data offset
u8 m_icon_format[2]; // 0x30 0x02 icon gfx format (2bits per icon)
Common::BigEndianValue<u32>
m_modification_time; // 0x28 0x04 Time of file's last modification in seconds since
// 12am, January 1st, 2000
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
// 00 No icon
// 01 CI8 with a shared color palette after the last frame