ItsMods

Full Version: [C#] [LIBRARY] SABSFile library (open sound files)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
(07-07-2013, 16:05)master131 Wrote: [ -> ]
(07-07-2013, 15:55)Jake625 Wrote: [ -> ]
(07-07-2013, 10:33)kokole Wrote: [ -> ]http://www.itsmods.com/forum/Thread-Rele...2#pid91852

Yeah, that's not the struct for ps3 though :p I'm not sure about pc.

Structures are identical (little endian). Only difference is that PS3 uses MP3 instead of FLAC.

me and red-eyex32 figured it out.

I re-mapped.

Mine makes a LOT more sense...

I posted on the cod modding wiki. You can check it here..

http://codresearch.wikia.com/wiki/Call_of_Duty:_Sabs
(07-07-2013, 17:06)Jake625 Wrote: [ -> ]
(07-07-2013, 16:05)master131 Wrote: [ -> ]
(07-07-2013, 15:55)Jake625 Wrote: [ -> ]
(07-07-2013, 10:33)kokole Wrote: [ -> ]http://www.itsmods.com/forum/Thread-Rele...2#pid91852

Yeah, that's not the struct for ps3 though :p I'm not sure about pc.

Structures are identical (little endian). Only difference is that PS3 uses MP3 instead of FLAC.

me and red-eyex32 figured it out.

I re-mapped.

Mine makes a LOT more sense...

PHP Code:
typedef unsigned char byte;
typedef unsigned long int u32;
typedef unsigned long long int u64;

struct hash_table_t
{
    
char md5[0x10];
}

struct entry_table_t
{
    
int unk;
    
int size;
    
int offset;
    
u64 unk2;
};

struct sabs_header_t
{
    
char magic[0x10];
    
int nameLength//length of each name entry - little endian
    
int entryCount//little endian
    
int unk;
    
int unk2
    
int fileLength//Size of the whole file - little endian 
    
int unk3;
    
entry_table_t** entries//entryCount
    
int unk4;
    
hash_table_t** hashes//entryCount
    
int unk5;
};

struct sabs_file
{
    
sabs_header_t header;
    
char md5[0x10];
    
char** nameEntries//not proper syntax as it's not a pointer... but it's 0x40 long (nameLength) and are .sabs extension


this makes way more sense lol
Pages: 1 2 3 4