aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan3/glkio.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-07-05 19:19:22 -0700
committerPaul Gilbert2019-07-06 15:27:09 -0700
commit3165fa628ab44022ee8370d0244137295f3c59f1 (patch)
treefbf8527f9210c89240a494393fbc148ab38b1ec5 /engines/glk/alan3/glkio.h
parent4de30c9e2f02d028660bbfa1011047747abba548 (diff)
downloadscummvm-rg350-3165fa628ab44022ee8370d0244137295f3c59f1.tar.gz
scummvm-rg350-3165fa628ab44022ee8370d0244137295f3c59f1.tar.bz2
scummvm-rg350-3165fa628ab44022ee8370d0244137295f3c59f1.zip
GLK: ALAN3: Add loading savegame from launcher
Diffstat (limited to 'engines/glk/alan3/glkio.h')
-rw-r--r--engines/glk/alan3/glkio.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/engines/glk/alan3/glkio.h b/engines/glk/alan3/glkio.h
index 55c8ab6cab..fb342d1569 100644
--- a/engines/glk/alan3/glkio.h
+++ b/engines/glk/alan3/glkio.h
@@ -48,7 +48,17 @@ public:
*/
GlkIO(OSystem *syst, const GlkGameDescription &gameDesc);
- void print(const char *, ...);
+ /**
+ * Print a string to the window
+ */
+ void print(const char *fmt, ...);
+
+ /**
+ * Outputs a string to the window, even during startup
+ */
+ void forcePrint(const char *str) {
+ glk_put_string(str);
+ }
void showImage(int image, int align);
@@ -66,9 +76,15 @@ public:
void flowBreak() {
/* Make a new paragraph, i.e one empty line (one or two newlines). */
- if (glk_gestalt(gestalt_Graphics, 0) == 1)
+ if (_saveSlot == -1 && glk_gestalt(gestalt_Graphics, 0) == 1)
glk_window_flow_break(glkMainWin);
}
+
+ /**
+ * If a savegame was selected to be loaded from the launcher, then load it.
+ * Otherwise, prompt the user for a savegame to load, and then load it
+ */
+ Common::Error loadGame();
};
extern GlkIO *g_io;