Savegames: Difference between revisions

No edit summary
Line 98: Line 98:
| 0x004
| 0x004
| 4
| 4
| Version? (Upper 2 bytes must be 0x0004)
| Version (Upper 2 bytes must be 0x0004)
|-
|-
| 0x008
| 0x008
Line 305: Line 305:
| 0x04
| 0x04
| 4
| 4
| Version? (Upper 2 bytes must be 0x0001)
| Version (Upper 2 bytes must be 0x0001)
|-
|-
| 0x08
| 0x08
Line 363: Line 363:
| 0x04
| 0x04
| 4
| 4
| Version? (Upper 2 bytes must be 0x0002)
| Version (Upper 2 bytes must be 0x0002)
|-
|-
| 0x08
| 0x08
Line 426: Line 426:
| 0x04
| 0x04
| 4
| 4
| Version? (Must be 0x10000 or less)
| Version (Must be 0x10000 or less)
|-
|-
| 0x08
| 0x08
Line 440: Line 440:
| Block size
| Block size
|-
|-
| 0x20
| 16
| Journal map header
|-
| 0x200
|  
|  
|  
| End
| The below fields are treated as a separate subheader
|-
|}
 
==== Journal map header ====
 
{| class="wikitable"
|-
! Start
! Length
! Description
|-
|-
| 0x20
| 0x00
| 4
| 4
| Version? (Must be 0 or 1)
| Version (Must be 0 or 1)
|-
|-
| 0x24
| 0x04
| 4
| 4
| Main data block count
| Main data block count
|-
|-
| 0x28
| 0x08
| 4
| 4
| Journal block count
| Journal block count
|-
|-
| 0x200
| 0x0C
|  
| 4
| End
| Padding
|-
|-
|}
|}
Line 478: Line 492:
| 0x04
| 0x04
| 4
| 4
| Version? (Upper 2 bytes must be 0x0006)
| Version (Upper 2 bytes must be 0x0006)
|-
|-
| 0x08
| 0x08
Line 488: Line 502:
| Block Size
| Block Size
|-
|-
|  
| 0x18
|  
| 0x30
| The below fields are treated as a separate subheader
| FAT header
|-
|}
 
==== File allocation table header ====
 
{| class="wikitable"
|-
! Start
! Length
! Description
|-
|-
| 0x18
| 0x00
| 8
| 8
| Block size
| Block size
|-
|-
| 0x20
| 0x08
| 8
| 8
| FAT offset
| FAT offset
|-
|-
| 0x28
| 0x10
| 4
| 4
| FAT entry count
| FAT entry count
|-
|-
| 0x2C
| 0x14
| 4
| 4
| Padding
| Padding
|-
|-
| 0x30
| 0x18
| 8
| 8
| Data offset
| Data offset
|-
|-
| 0x38
| 0x20
| 4
| 4
| Data block count
| Data block count
|-
|-
| 0x3C
| 0x24
| 4
| 4
| Padding
| Padding
|-
|-
| 0x40
| 0x28
| 8
| 4
| Directory table block index
| Directory table block index
|-
|-
| 0x48
| 0x2C
| 8
| 4
| File table block index
| File table block index
|-
|-
Line 544: Line 568:
| 0x04
| 0x04
| 4
| 4
| Version? (Must be 0x10000 or less)
| Version (Must be 0x10000 or less)
|-
|-
| 0x08
| 0x08