mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 16:31:01 +00:00
MOHAWK: Myst, pass the playback direction from the calling script to the movie player.
svn-id: r55657
This commit is contained in:
parent
b43fae5c18
commit
0b69b6a842
@ -173,7 +173,7 @@ MystResourceType6::MystResourceType6(MohawkEngine_Myst *vm, Common::SeekableRead
|
||||
_left = rlstStream->readSint16LE() % 10000;
|
||||
_top = rlstStream->readSint16LE() % 10000;
|
||||
_playOnCardChange = rlstStream->readUint16LE();
|
||||
_direction = rlstStream->readUint16LE();
|
||||
_direction = rlstStream->readSint16LE();
|
||||
_playBlocking = rlstStream->readUint16LE();
|
||||
_loop = rlstStream->readUint16LE();
|
||||
_u3 = rlstStream->readUint16LE();
|
||||
|
@ -108,6 +108,7 @@ public:
|
||||
VideoHandle playMovie();
|
||||
void handleCardChange();
|
||||
bool isPlaying();
|
||||
void setDirection(int16 direction) { _direction = direction; }
|
||||
void setBlocking(bool blocking) { _playBlocking = blocking; }
|
||||
void pauseMovie(bool pause);
|
||||
|
||||
@ -117,7 +118,7 @@ protected:
|
||||
int16 _left;
|
||||
int16 _top;
|
||||
uint16 _loop;
|
||||
uint16 _direction; // 1 => forward, -1 => backwards
|
||||
int16 _direction; // 1 => forward, -1 => backwards
|
||||
uint16 _playBlocking;
|
||||
uint16 _playOnCardChange;
|
||||
uint16 _u3;
|
||||
|
@ -384,6 +384,7 @@ void MystScriptParser::o_triggerMovie(uint16 op, uint16 var, uint16 argc, uint16
|
||||
|
||||
// Trigger resource 6 movie overriding play direction
|
||||
MystResourceType6 *resource = static_cast<MystResourceType6 *>(_invokingResource);
|
||||
resource->setDirection(direction);
|
||||
resource->playMovie();
|
||||
|
||||
// TODO: If movie has sound, resume background music
|
||||
|
Loading…
x
Reference in New Issue
Block a user