mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 19:59:09 +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;
|
delete fReader;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
delete[] fMoviePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool plMoviePlayer::IOpenMovie()
|
bool plMoviePlayer::IOpenMovie()
|
||||||
|
@ -102,7 +102,11 @@ public:
|
|||||||
plMessage* GetCallback(int i) const { return nullptr; }
|
plMessage* GetCallback(int i) const { return nullptr; }
|
||||||
|
|
||||||
const char *GetFileName() const { return fMoviePath; }
|
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) { }
|
void SetColor(const hsColorRGBA& c) { }
|
||||||
const hsColorRGBA GetColor() const { return hsColorRGBA(); }
|
const hsColorRGBA GetColor() const { return hsColorRGBA(); }
|
||||||
|
Reference in New Issue
Block a user