diff options
| author | Gliniak <Gliniak93@gmail.com> | 2023-08-04 21:50:30 +0200 |
|---|---|---|
| committer | Triang3l <triang3l@yandex.ru> | 2023-09-14 12:32:51 +0300 |
| commit | f6b5424a9f7daee69ea7ea837b6d4224ea47c368 (patch) | |
| tree | 5c38031d9a3f3de7f4ce2b6fc7e40db91e04d39f | |
| parent | 0f331b531354f6b73f68d963fa3e47f6a80e9e41 (diff) | |
[VFS] Fixed invalid month decoding in decode_fat_timestamp
| -rw-r--r-- | src/xenia/vfs/devices/stfs_xbox.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xenia/vfs/devices/stfs_xbox.h b/src/xenia/vfs/devices/stfs_xbox.h index eeb0c25d9..54eaabb47 100644 --- a/src/xenia/vfs/devices/stfs_xbox.h +++ b/src/xenia/vfs/devices/stfs_xbox.h @@ -24,7 +24,7 @@ inline uint64_t decode_fat_timestamp(const uint32_t date, const uint32_t time) { struct tm tm = {0}; // 80 is the difference between 1980 (FAT) and 1900 (tm); tm.tm_year = ((0xFE00 & date) >> 9) + 80; - tm.tm_mon = ((0x01E0 & date) >> 5); + tm.tm_mon = ((0x01E0 & date) >> 5) - 1; tm.tm_mday = (0x001F & date) >> 0; tm.tm_hour = (0xF800 & time) >> 11; tm.tm_min = (0x07E0 & time) >> 5; |
