# CXML-Decompiler     



A CXML De/compiler For VITA & PS4 CXML formats. ~ Can decompile PSMA (Playstation Mobile app.info), RCOF (.rco) and RCSF (.rcs)     

Was originally made for reading PSM "app.info" but now it can be used on RCO too :D    
it will output the XML files and embedded resources (and attempt to work out what type of file it is)    

About .GIM and .VAG formats:          
GIM is a Properitary Image Format orignally made for the PS3 and PSP, turns out the vita uses it as well       
there are 3 types used by the vita: 8 bit indexed color, 4 bit indexed color, and argb8888      
the first time you run this program GimConv tool will be downloaded directly from there CDN    
where they conviently leaked them publicly for everyone- Thanks :D

http://e1.dl.playstation.net/e1/downloads/ps3/themes/370/PS3_Custom_Theme_v200.zip       
its just sitting there, in this file. because of course it is.      
     
VAG is a ADPCM Audio Encoding, originally introduced for the original PlayStation 1,         
there is an updated version of it on PSVita and PS4 called "HeVag" there is a decoder built into            
this program, but for encoding u need a SCE CONFIDENTIAL tool >_<             
note: the hevag decoding does NOT support stereo files!    

Download: https://silica.codes/RandomHuman/cxml-decompiler/releases    
          
Example Decompile Usage: ```CXMLDecompiler -i common_resource.rco -o common_resource.xml -d -p```           
Example Compile Usage: ```CXMLDecompiler -i common_resource.xml -o common_resource.rco -c```          
        
This is done automatically to any files inside the CXML (providing -p is provided)       
but incase you need to do it manually, you can decode a HEVAG file using the following:           
HEVAG Decode Usage: ```CXMLDecompiler -i sound.vag -o sound.wav --is-vag```         
