WAD: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Switch to a template for formats) |
||
Line 1: | Line 1: | ||
{{ | {{File Format | ||
|TYPE = [[:Category:Archive Formats|Archive Format]] | |||
|SYSTEM = Steam | |||
| | |TITLES = [[wikipedia:Danganronpa: Trigger Happy Havoc|Danganronpa: Trigger Happy Havoc]] and [[wikipedia:Danganronpa 2: Goodbye Despair|Danganronpa 2: Goodbye Despair]] | ||
| | |CREDIT = [https://github.com/TcT2k/HLMWadExplorer TcT2k/HMLWadExplorer] | ||
|SIGNEDNESS = Unsigned | |||
| | |ENDIANNESS = [[wikipedia:Little Endian|Little-Endian]] | ||
|STATUS = 100% | |||
| | |||
| | |||
| | |||
| | |||
}} | }} | ||
Revision as of 17:07, 11 September 2017
Type | Archive Format |
---|---|
System | Steam |
Applicable Titles | Danganronpa: Trigger Happy Havoc and Danganronpa 2: Goodbye Despair |
Credit | TcT2k/HMLWadExplorer |
Default Signedness | Unsigned |
Default Endianness | Little-Endian |
Implementation Status | 100% |
Specification
WAD File | |||||
---|---|---|---|---|---|
Offset | Size | Data Type | Function | Example Value | Notes |
0x00 | 4 Bytes | String/Data | Magic Number | "AGAR" or 0x41 0x47 0x41 0x52
| |
0x04 | 4 Bytes | Int | Major Version | 1 | |
0x08 | 4 Bytes | Int | Minor Version | 0 | |
0x0C | 4 Bytes | Int | Header Size | 0 | Danganronpa does not seem to support WAD headers |
0x10 | Header Size
|
Data | Header | ||
... | 4 Bytes | Int | Number of files | 23871 | |
... | Varying | File Entries | Files | ||
... | 4 Bytes | Int | Number of directories | 40 | |
... | Varing | Directory entries | Directories | ||
... | Varying | Data | File Data |
File Entry | |||||
---|---|---|---|---|---|
Offset | Size | Data Type | Function | Example Value | Notes |
0x00 | 4 Bytes | Int | File Name Length | 3 | |
0x04 | File Name Length
|
String | File Name | Dr1 | Not NULL terminated |
0x04+File Name Length
|
8 Bytes | Long/Int | File Size | 4480237 | |
0x0C+File Name Length
|
8 Bytes | Long/Int | File Offset | 0 | The offset is from the beginning of the file data section in the parent WAD |
Directory Entry | |||||
---|---|---|---|---|---|
Offset | Size | Data Type | Function | Example Value | Notes |
0x00 | 4 Bytes | Int | Dir Name Length | 3 | |
0x04 | Dir Name Length
|
String | Dir Name | Dr1 | Not NULL terminated |
0x04+Dir Name Length
|
4 Bytes | Int | 8 | ||
0x08+Dir Name Length
|
Varying | Subfile Entries | Subfiles |
Directory Entry | |||||
---|---|---|---|---|---|
Offset | Size | Data Type | Function | Example Value | Notes |
0x00 | 4 Bytes | Int | Name Length | 4 | |
0x04 | Name Length
|
String | Subfile Name | data | Not NULL terminated |
0x04+Name Length
|
1 Byte | Boolean | Is Directory | 1 | "Truthy"; 1 for true, 0 for false |