aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2/sysdep.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-18 19:56:25 -0700
committerPaul Gilbert2019-06-22 14:40:49 -0700
commited21388e11a928fc965714a035d2c18887ec7f62 (patch)
treebb41c7bf99f482c2e8964403929a779f976fe21a /engines/glk/alan2/sysdep.cpp
parent08bc570308b0698090ce668dc7dca4c0c76dd3df (diff)
downloadscummvm-rg350-ed21388e11a928fc965714a035d2c18887ec7f62.tar.gz
scummvm-rg350-ed21388e11a928fc965714a035d2c18887ec7f62.tar.bz2
scummvm-rg350-ed21388e11a928fc965714a035d2c18887ec7f62.zip
GLK: ALAN2: Added missing main code file, hooked up to Alan2 engine skeleton
Diffstat (limited to 'engines/glk/alan2/sysdep.cpp')
-rw-r--r--engines/glk/alan2/sysdep.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/glk/alan2/sysdep.cpp b/engines/glk/alan2/sysdep.cpp
index daa0417569..d36722c312 100644
--- a/engines/glk/alan2/sysdep.cpp
+++ b/engines/glk/alan2/sysdep.cpp
@@ -30,6 +30,17 @@
namespace Glk {
namespace Alan2 {
+#ifdef GLK
+extern void fprintf(Common::WriteStream *ws, const char *fmt, ...) {
+ va_list args;
+ va_start(args, fmt);
+ Common::String s = Common::String::vformat(fmt, args);
+ va_end(args);
+
+ ws->write(s.c_str(), s.size());
+}
+#endif
+
#ifdef _PROTOTYPES_
extern void syserr(char str[]);
#endif