mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
ADL: Move restartGame() into opcode
This commit is contained in:
parent
97168fa200
commit
09146fba6e
@ -1070,7 +1070,9 @@ int AdlEngine::o1_restart(ScriptEnv &e) {
|
||||
_isRestarting = true;
|
||||
_display->clear(0x00);
|
||||
_display->updateHiResScreen();
|
||||
restartGame();
|
||||
_display->printString(_strings.pressReturn);
|
||||
initState();
|
||||
_display->printAsciiString(_strings.lineFeeds);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -359,7 +359,6 @@ private:
|
||||
virtual void runIntro() const { }
|
||||
virtual void init() = 0;
|
||||
virtual void initState() = 0;
|
||||
virtual void restartGame() = 0;
|
||||
virtual void drawItem(const Item &item, const Common::Point &pos) const = 0;
|
||||
virtual void loadRoom(byte roomNr) = 0;
|
||||
virtual void showRoom() = 0;
|
||||
|
@ -187,12 +187,6 @@ void HiRes2Engine::initState() {
|
||||
}
|
||||
}
|
||||
|
||||
void HiRes2Engine::restartGame() {
|
||||
_display->printString(_strings.pressReturn);
|
||||
initState();
|
||||
_display->printAsciiString(_strings.lineFeeds);
|
||||
}
|
||||
|
||||
Engine *HiRes2Engine_create(OSystem *syst, const AdlGameDescription *gd) {
|
||||
return new HiRes2Engine(syst, gd);
|
||||
}
|
||||
|
@ -59,7 +59,6 @@ private:
|
||||
void runIntro() const;
|
||||
void init();
|
||||
void initState();
|
||||
void restartGame();
|
||||
};
|
||||
|
||||
} // End of namespace Adl
|
||||
|
Loading…
x
Reference in New Issue
Block a user