Tuesday, July 2, 2013

Desperados : Wanted Dead or Alive - PIC Resource

Inside .res file there is 'PIC ' (notice the space at the end) entry resources.
Those resources can be managed like PICC.
The only difference is this resource got only one entry.

Pseudo-code

  magic_number = read(4)   
  unknow = read(4)   
  if (magic_number == 0x20434950):   
   unknow = read(4)   
   width = read(4)   
   height = read(4)   
   is_compressed = read(4)   
   size = read(4)   
   data = read(size)   
   if is_compressed == 1:   
     data = zlib.decompress(data)   
Data is still 16 bits image.
Few extracted images :







No comments:

Post a Comment