Commit 274ea422 authored by anotherguest's avatar anotherguest

Some additional logging for scene ani format.

parent b0c4d982
...@@ -200,27 +200,64 @@ void Scene::ParseAni(File* f, int dataIndex) { ...@@ -200,27 +200,64 @@ void Scene::ParseAni(File* f, int dataIndex) {
// Skip back size header, this is read by the surface reader // Skip back size header, this is read by the surface reader
//f->seek(-2, false); //f->seek(-2, false);
while(size) { while(size) {
size--; size--;
unsigned char header = f->loadChar();
log("PL 4c31 block header", header);
switch(header)
{
case 0x7F:
{
unsigned short fillWidth = f->loadShort();
unsigned char fillColor = f->loadChar();
log("PL Fillblock width", fillWidth);
log("PL Fillblock with color", fillColor);
size-=3;
}break;
case 0xff:
{
unsigned char x= f->loadChar();
unsigned char y= f->loadChar();
log("PL block x", x);
log("PL block y", y);
size-=2;
}break;
default:
{
log("PL Unknown type");
}break;
} }
}
}break; }break;
case 0x4646: case 0x4646:
{ {
while(size) { while(size) {
unsigned char header = f->loadChar(); unsigned char header = f->loadChar();
log("PL 4646 block header", header); log("PL 4646 block header", header);
switch(header) switch(header)
{
case 0x7F:
{
unsigned short fillWidth = f->loadShort();
unsigned char fillColor = f->loadChar();
log("PL Fillblock width", fillWidth);
log("PL Fillblock with color", fillColor);
size-=3;
}break;
case 0xff:
{ {
case 0xff: unsigned char x= f->loadChar();
{ unsigned char y= f->loadChar();
unsigned char x= f->loadChar(); log("PL block x", x);
unsigned char y= f->loadChar(); log("PL block y", y);
log("PL block x", x); size-=2;
log("PL block y", y); }break;
size-=2; default:
}break; {
} log("PL Unknown type");
size--; }break;
} }
size--;
}
}break; }break;
case 0x4e52: case 0x4e52:
case 0x4252: case 0x4252:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment