aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorBastien Bouclet2017-07-01 15:21:07 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit88d594538da2271af99a588bea1baea7a0001831 (patch)
tree46f5441ddf69b4d3aeb7e8f3f6de78892995e038 /engines/mohawk
parentb9a72ff7a6dc7033beae4a75dc5f596264c39419 (diff)
downloadscummvm-rg350-88d594538da2271af99a588bea1baea7a0001831.tar.gz
scummvm-rg350-88d594538da2271af99a588bea1baea7a0001831.tar.bz2
scummvm-rg350-88d594538da2271af99a588bea1baea7a0001831.zip
MOHAWK: Document unused MLST record fields
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/riven_card.cpp32
-rw-r--r--engines/mohawk/riven_card.h6
2 files changed, 22 insertions, 16 deletions
diff --git a/engines/mohawk/riven_card.cpp b/engines/mohawk/riven_card.cpp
index fe93190385..495f58a170 100644
--- a/engines/mohawk/riven_card.cpp
+++ b/engines/mohawk/riven_card.cpp
@@ -523,12 +523,12 @@ void RivenCard::dump() const {
debug("playbackSlot: %d", _movieList[i].playbackSlot);
debug("left: %d", _movieList[i].left);
debug("top: %d", _movieList[i].top);
- debug("u0[0]: %d", _movieList[i].u0[0]);
- debug("u0[1]: %d", _movieList[i].u0[1]);
- debug("u0[2]: %d", _movieList[i].u0[2]);
+ debug("lowBoundTime: %d", _movieList[i].lowBoundTime);
+ debug("startTime: %d", _movieList[i].startTime);
+ debug("highBoundTime: %d", _movieList[i].highBoundTime);
debug("loop: %d", _movieList[i].loop);
debug("volume: %d", _movieList[i].volume);
- debug("u1: %d", _movieList[i].u1);
+ debug("rate: %d", _movieList[i].rate);
debugN("\n");
}
}
@@ -546,20 +546,24 @@ void RivenCard::loadCardMovieList(uint16 id) {
mlstRecord.playbackSlot = mlstStream->readUint16BE();
mlstRecord.left = mlstStream->readUint16BE();
mlstRecord.top = mlstStream->readUint16BE();
+ mlstRecord.lowBoundTime = mlstStream->readUint16BE();
+ mlstRecord.startTime = mlstStream->readUint16BE();
+ mlstRecord.highBoundTime = mlstStream->readUint16BE();
+ mlstRecord.loop = mlstStream->readUint16BE();
+ mlstRecord.volume = mlstStream->readUint16BE();
+ mlstRecord.rate = mlstStream->readUint16BE();
- for (byte j = 0; j < 2; j++)
- if (mlstStream->readUint16BE() != 0)
- warning("u0[%d] in MLST non-zero", j);
+ if (mlstRecord.lowBoundTime != 0)
+ warning("lowBoundTime in MLST not 0");
- if (mlstStream->readUint16BE() != 0xFFFF)
- warning("u0[2] in MLST not 0xFFFF");
+ if (mlstRecord.startTime != 0)
+ warning("startTime in MLST not 0");
- mlstRecord.loop = mlstStream->readUint16BE();
- mlstRecord.volume = mlstStream->readUint16BE();
- mlstRecord.u1 = mlstStream->readUint16BE();
+ if (mlstRecord.highBoundTime != 0xFFFF)
+ warning("highBoundTime in MLST not 0xFFFF");
- if (mlstRecord.u1 != 1)
- warning("mlstRecord.u1 not 1");
+ if (mlstRecord.rate != 1)
+ warning("mlstRecord.rate not 1");
}
delete mlstStream;
diff --git a/engines/mohawk/riven_card.h b/engines/mohawk/riven_card.h
index e92d31afbd..220c40f617 100644
--- a/engines/mohawk/riven_card.h
+++ b/engines/mohawk/riven_card.h
@@ -188,10 +188,12 @@ struct MLSTRecord {
uint16 playbackSlot;
uint16 left;
uint16 top;
- uint16 u0[3];
+ uint16 lowBoundTime;
+ uint16 startTime;
+ uint16 highBoundTime;
uint16 loop;
uint16 volume;
- uint16 u1;
+ uint16 rate;
};
/**