mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
GLK: ADVSYS: Do a look action after loading a savegame from launcher
This commit is contained in:
parent
611bea7d73
commit
a9261a6d31
@ -46,6 +46,8 @@ void AdvSys::runGame() {
|
||||
_saveSlot = -1;
|
||||
if (err != Common::kNoError)
|
||||
print(_("Sorry, the savegame couldn't be restored"));
|
||||
else
|
||||
_pendingLine = "look"; // Do a look action after loading the savegame
|
||||
}
|
||||
|
||||
// Gameplay loop
|
||||
|
@ -47,6 +47,17 @@ Common::String GlkInterface::readLine() {
|
||||
char line[200];
|
||||
|
||||
print(": ");
|
||||
|
||||
if (!_pendingLine.empty()) {
|
||||
// The next input line has been manually provided, so return it
|
||||
print(_pendingLine);
|
||||
print("\n");
|
||||
|
||||
Common::String l = _pendingLine;
|
||||
_pendingLine = "";
|
||||
return l;
|
||||
}
|
||||
|
||||
glk_request_line_event(_window, line, 199, 0);
|
||||
|
||||
do {
|
||||
|
@ -37,6 +37,7 @@ private:
|
||||
winid_t _window;
|
||||
protected:
|
||||
int _saveSlot;
|
||||
Common::String _pendingLine;
|
||||
protected:
|
||||
/**
|
||||
* GLK initialization
|
||||
|
Loading…
Reference in New Issue
Block a user