Commit 274ea422 authored by anotherguest's avatar anotherguest

Some additional logging for scene ani format.

parent b0c4d982
......@@ -201,6 +201,31 @@ void Scene::ParseAni(File* f, int dataIndex) {
//f->seek(-2, false);
while(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;
case 0x4646:
......@@ -210,6 +235,14 @@ void Scene::ParseAni(File* f, int dataIndex) {
log("PL 4646 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();
......@@ -218,6 +251,10 @@ void Scene::ParseAni(File* f, int dataIndex) {
log("PL block y", y);
size-=2;
}break;
default:
{
log("PL Unknown type");
}break;
}
size--;
}
......
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