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:
@ -193,6 +193,7 @@ plMoviePlayer::~plMoviePlayer()
|
||||
delete fReader;
|
||||
}
|
||||
#endif
|
||||
delete[] fMoviePath;
|
||||
}
|
||||
|
||||
bool plMoviePlayer::IOpenMovie()
|
||||
|
@ -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(); }
|
||||
|
Reference in New Issue
Block a user