ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Sep 25, 2017 4:52 pm

All times are UTC




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: [script] EA mus to wave
PostPosted: Wed Jul 26, 2017 2:30 pm 

Joined: Sat Aug 09, 2014 11:21 am
Posts: 609
Hi there!

Sometimes EA games use files that look like EA MUS but are in reality just wave or AT3 files, e.g. Medal of Honor: Heroes 2 for PSP. The following script parses those files.

Code:
# parse pseudo EA MUS files to wave
# written by AlphaTwentyThree of Zenhax
# script for QuickBMS http://quickbms.aluigi.org

idstring "SCHl" # header
get BLOCKSIZE long
goto BLOCKSIZE
savepos OFFSET
getDstring IDENT 4
get BLOCKSIZE long
math OFFSET += BLOCKSIZE
log MEMORY_FILE 0 0
for
   goto OFFSET
   getDstring IDENT 4
   if IDENT == "SCEl"
      get NAME basename
      string NAME += ".wav"
      get SIZE asize MEMORY_FILE
      log NAME 0 SIZE MEMORY_FILE
      cleanexit
   endif
   get SIZE long
   math SIZE -= 0x18
   math OFFSET += 0x18
   append
   log MEMORY_FILE OFFSET SIZE
   append
   math OFFSET += SIZE
next


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited