Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openjazz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
openjazz
Commits
274ea422
Commit
274ea422
authored
Mar 05, 2010
by
anotherguest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some additional logging for scene ani format.
parent
b0c4d982
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
14 deletions
+51
-14
scene.cpp
src/scene.cpp
+51
-14
No files found.
src/scene.cpp
View file @
274ea422
...
@@ -201,6 +201,31 @@ void Scene::ParseAni(File* f, int dataIndex) {
...
@@ -201,6 +201,31 @@ void Scene::ParseAni(File* f, int dataIndex) {
//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
:
...
@@ -210,6 +235,14 @@ void Scene::ParseAni(File* f, int dataIndex) {
...
@@ -210,6 +235,14 @@ void Scene::ParseAni(File* f, int dataIndex) {
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
x
=
f
->
loadChar
();
...
@@ -218,6 +251,10 @@ void Scene::ParseAni(File* f, int dataIndex) {
...
@@ -218,6 +251,10 @@ void Scene::ParseAni(File* f, int dataIndex) {
log
(
"PL block y"
,
y
);
log
(
"PL block y"
,
y
);
size
-=
2
;
size
-=
2
;
}
break
;
}
break
;
default
:
{
log
(
"PL Unknown type"
);
}
break
;
}
}
size
--
;
size
--
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment