Fix for kyra3 crashes while playing WSA files.

svn-id: r29075
This commit is contained in:
Johannes Schickel 2007-09-23 22:43:46 +00:00
parent ef986e2222
commit df827970a1
3 changed files with 10 additions and 1 deletions

View File

@ -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[];

View File

@ -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

View File

@ -42,6 +42,8 @@ public:
int go();
void playVQA(const char *name);
virtual Movie *createWSAMovie();
private:
int init();