剑芒罗曼史2解图片程序
mcg文件
file head 40h
---------------------------
10h palette offset
1ch width
20h height
---------------------------
palette 400h
---------------------------
BMP's palette
---------------------------
pixel data
使用一种比较特殊的压缩法,至少是我不知道的,呵呵,具体的解码函数看0x422990吧
使用工具
IDA 4.0
TRW 2000
注:
dat/plane/n0.mcg,实际上不是mcg文件,好像是bmp吧,先把它换名再运行才不会出问题!
#include <stdio.h>
#include <windows.h>
#include <malloc.h>
#include <io.h>
#include <conio.h>
typedef struct BITMAPHEADER
{
unsigned short type;
unsigned long size;
unsigned long reserved;
unsigned long offbits;
unsigned long headsize;
unsigned long width;
unsigned long height;
unsigned short planes;<