I was trying to analyze the image format (*.WTM, magic WTMD) of the game Arc Rise Fantasia. Actually I started some years ago and never moved on. Here is what I found out back in the days (posted it over at Xentax under the name Polefish):
- Code: Select all
Offset Size Description
0x06 2byte Palette Offset - offset to Palette Data
0x08 2byte Width
0x0A 2byte Height
0x0C 1byte Imageformat - RGB565/RGBA8/CI4/CI4... see yagcd for more info
0x12 2byte Data Offset - offset to image Data
0x15 1byte paletteformat
and some more information like headersize and magicbytes...
This was enough to take a look at the most images of the game. But I was only able to work this out because the imageformat is very similar to the standard TPL image format. Since there are still some images that I cant convert I want to find out more about the format by looking at the code in IDA. And here is my problem. I was not able to make out the routine that loads the image. I was trying the following:
Letting the game run till a WTM image is loaded and pause the game. Searching the RAM for the magicbytes (WTMD) and setting a memorybreakpoint at the address. By breaking at this address I would be able to see which routine is loaded with Dolphin.
But I don't even find the magicbytes... Searching a dump of the MEM2 will give me many results. The memorysearch in Dolphin yields nothing at all. And in MEM1 I can't find any traces of an imagefile with Dolphin nor by searching the dumped RAM.
So how can I find out which the routine to load up the WTM is to load it up in IDA?
Cheers.
PS. Are the memory breakpoints in dolphin for MEM1 only or MEM1and MEM2?



