1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-21 04:39:45 +00:00

Patch from Adam Fix movie playback in Opening Sequence

- copy fMoviePath in plMoviePlayer::SetFileName() rather than use existing pointer
- fix inability of xOpeningSequence.py to play movie.  File path provided not persistent.
This commit is contained in:
2020-08-11 21:11:11 -06:00
committed by rarified
parent bf27010d11
commit f7bc877285
2 changed files with 6 additions and 1 deletions

View File

@ -193,6 +193,7 @@ plMoviePlayer::~plMoviePlayer()
delete fReader;
}
#endif
delete[] fMoviePath;
}
bool plMoviePlayer::IOpenMovie()

View File

@ -102,7 +102,11 @@ public:
plMessage* GetCallback(int i) const { return nullptr; }
const char *GetFileName() const { return fMoviePath; }
void SetFileName(const char* filename) { fMoviePath = filename; }
void SetFileName(const char* filename)
{
delete[] fMoviePath;
fMoviePath = hsStrcpy(filename);
}
void SetColor(const hsColorRGBA& c) { }
const hsColorRGBA GetColor() const { return hsColorRGBA(); }