mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
Hack for allowing ScummVM to respond to events during while the intro is
playing. I apologize for adding a global variable, but for now that seemed like the least intrusive change. svn-id: r10845
This commit is contained in:
parent
e00c16b4a9
commit
40b231e6fe
@ -696,7 +696,7 @@ void Graphics::update() {
|
||||
_display->prepareUpdate();
|
||||
bobDrawAll();
|
||||
textDrawAll();
|
||||
g_system->delay_msecs(100);
|
||||
g_queen->delay(100);
|
||||
_display->palCustomScroll(0); //_currentRoom
|
||||
_display->update(_bobs[0].active, _bobs[0].x, _bobs[0].y);
|
||||
}
|
||||
|
@ -59,8 +59,12 @@ REGISTER_PLUGIN("Flight of the Amazon Queen", Engine_QUEEN_targetList, Engine_QU
|
||||
|
||||
namespace Queen {
|
||||
|
||||
QueenEngine *g_queen;
|
||||
|
||||
QueenEngine::QueenEngine(GameDetector *detector, OSystem *syst)
|
||||
: Engine(detector, syst) {
|
||||
|
||||
g_queen = this;
|
||||
|
||||
_game = detector->_game.id;
|
||||
|
||||
|
@ -62,10 +62,11 @@ public:
|
||||
QueenEngine(GameDetector *detector, OSystem *syst);
|
||||
virtual ~QueenEngine();
|
||||
|
||||
void delay(uint amount);
|
||||
|
||||
protected:
|
||||
byte _fastMode;
|
||||
|
||||
void delay(uint amount);
|
||||
void go();
|
||||
|
||||
//! Called when we go from one room to another
|
||||
@ -76,6 +77,9 @@ protected:
|
||||
static int CDECL game_thread_proc(void *param);
|
||||
};
|
||||
|
||||
// XXX: Temporary hack to allow Graphics to call delay()
|
||||
extern QueenEngine *g_queen;
|
||||
|
||||
} // End of namespace Queen
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user