1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Add more functionality to the bink stubs to make them behave more like the previous implementation did when built without BINK_SDK_AVAILABLE.

In particular, the intro movie now exits immediately again rather than staying indefinitely.

The important difference is to send the completion callback in plBinkPlayer::NextFrame(), i.e. act as if we had reached the end of the movie.

Storing the filename is to keep plClient::IHandleMovieMsg() from deleting and recreating the plBinkPlayer on every message.

The changed return values are just to better match the previous behavior and probably don’t matter.
This commit is contained in:
Christian Walther
2012-12-18 15:49:41 +01:00
parent 5f53ada44d
commit e9835eda57
2 changed files with 27 additions and 8 deletions

View File

@ -50,7 +50,7 @@ class plLayerBink : public plLayerMovie
protected:
virtual int32_t ISecsToFrame(float secs) { return 0; }
virtual bool IInit() { return true; }
virtual bool IGetCurrentFrame() { return 0; }
virtual bool IGetCurrentFrame() { return true; }
virtual bool IRelease() { return true; }
public: