Ticket #8561: kyra2.diff

File kyra2.diff, 1.5 KB (added by eriktorbjorn, 18 years ago)

Patch against current SVN

  • engines/kyra/module.mk

     
    1717        script.o \
    1818        seqplayer.o \
    1919        sequences_v1.o \
     20        sequences_v2.o \
    2021        sound_adlib.o \
    2122        sound_digital.o \
    2223        sound.o \
  • engines/kyra/kyra2.cpp

     
    2222
    2323#include "kyra/kyra.h"
    2424#include "kyra/kyra2.h"
    25 #include "kyra/screen.h"
    26 #include "kyra/wsamovie.h"
    2725
    2826#include "common/system.h"
    2927
     
    3735}
    3836
    3937int KyraEngine_v2::go() {
    40         uint8 pal[768];
    41 
    42         WSAMovieV2 *title = new WSAMovieV2(this);
    43         title->open("title.WSA", 0, pal);
    44         assert(title->opened());
    45 
    46         _screen->setScreenPalette(pal);
    47         title->setX(0); title->setY(0);
    48         title->setDrawPage(0);
    49         for (int i = 0; i < 26 && !_quitFlag; ++i) {
    50                 uint32 nextRun = _system->getMillis() + 6 * _tickLength;
    51                 title->displayFrame(i);
    52                 _screen->updateScreen();
    53                 delayUntil(nextRun);
    54         }
    55 
    56         delete title;
    57 
     38        seq_menu();
    5839        waitForEvent();
    5940        return 0;
    6041}
  • engines/kyra/kyra2.h

     
    3333        int setupGameFlags() { _game = GI_KYRA2; return 0; }
    3434       
    3535        int go();
     36
     37protected:
     38        void seq_menu();
    3639};
    3740
    3841} // end of namespace Kyra