Disney's Hercules FS: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
(→FS: fixed) |
||
| Line 11: | Line 11: | ||
=== Format Specifications === | === Format Specifications === | ||
{{GRAFPageFormat|1= | |||
{{BlockDescription| // for each file (1024 records) }} | |||
: uint32 {4} | : uint32 {4} - File Hash | ||
: uint32 {4} | : uint32 {4} - File Offset | ||
: uint32 {4} | : uint32 {4} - File Length | ||
byte {X} | byte {X} - File Data}} | ||
</ | |||
=== Notes and Comments === | |||
Hash routine in C++ code: | |||
<pre>unsigned int herchash(char *s){ | |||
unsigned int hash, i; | |||
hash = 0; | |||
for(i = 0; i<strlen(s); i++){ | |||
hash += toupper(s[i]) << ((i*8)%32); | |||
} | |||
hash += strlen(s); | |||
return(hash); | |||
}</pre> | |||
=== MultiEx BMS === | === MultiEx BMS === | ||
| Line 27: | Line 39: | ||
=== Supported Programs === | === Supported Programs === | ||
* [[Game Extractor|Game Extractor]] | * [[Game Extractor|Game Extractor]] | ||
* ctpax-x.ru/?goto=files&show=114 / Disney's Hercules tools (with Delphi source codes) | |||
Revision as of 21:42, 20 March 2012
Choose archive extension:
FS
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
// for each file (1024 records)
- uint32 {4} - File Hash
- uint32 {4} - File Offset
- uint32 {4} - File Length
Notes and Comments
Hash routine in C++ code:
unsigned int herchash(char *s){
unsigned int hash, i;
hash = 0;
for(i = 0; i<strlen(s); i++){
hash += toupper(s[i]) << ((i*8)%32);
}
hash += strlen(s);
return(hash);
}
MultiEx BMS
Not written yet
Supported Programs
- Game Extractor
- ctpax-x.ru/?goto=files&show=114 / Disney's Hercules tools (with Delphi source codes)