mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 07:11:49 +00:00
Fix for kyra3 crashes while playing WSA files.
svn-id: r29075
This commit is contained in:
parent
ef986e2222
commit
df827970a1
@ -90,7 +90,7 @@ public:
|
||||
virtual Screen *screen() { return _screen; }
|
||||
Screen_v2 *screen_v2() { return _screen; }
|
||||
|
||||
Movie *createWSAMovie();
|
||||
virtual Movie *createWSAMovie();
|
||||
protected:
|
||||
// Main menu code, also used for Kyra 3
|
||||
static const char *_mainMenuStrings[];
|
||||
|
@ -697,5 +697,12 @@ bool KyraEngine_v3::loadLanguageFile(const char *file, uint8 *&buffer) {
|
||||
return size != 0 && buffer != 0;
|
||||
}
|
||||
|
||||
Movie *KyraEngine_v3::createWSAMovie() {
|
||||
WSAMovieV2 *movie = new WSAMovieV2(this);
|
||||
assert(movie);
|
||||
movie->flagOldOff(true);
|
||||
return movie;
|
||||
}
|
||||
|
||||
} // end of namespace Kyra
|
||||
|
||||
|
@ -42,6 +42,8 @@ public:
|
||||
int go();
|
||||
|
||||
void playVQA(const char *name);
|
||||
|
||||
virtual Movie *createWSAMovie();
|
||||
private:
|
||||
int init();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user