aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/alan2/main.cpp')
-rw-r--r--engines/glk/alan2/main.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/engines/glk/alan2/main.cpp b/engines/glk/alan2/main.cpp
index be6a60c3ac..5cb800b963 100644
--- a/engines/glk/alan2/main.cpp
+++ b/engines/glk/alan2/main.cpp
@@ -97,15 +97,6 @@ int paglen, pagwidth;
Boolean needsp = FALSE;
Boolean skipsp = FALSE;
-/* Restart jump buffer */
-//jmp_buf restart_label;
-
-
-/* PRIVATE DATA */
-//static jmp_buf jmpbuf; /* Error return long jump buffer */
-
-
-
/*======================================================================
terminate()
@@ -1017,12 +1008,7 @@ static void eventchk() {
\*----------------------------------------------------------------------*/
-
Common::SeekableReadStream *codfil;
-char codfnm[256];
-static char txtfnm[256];
-static char logfnm[256];
-
/*----------------------------------------------------------------------
@@ -1373,8 +1359,8 @@ static void movactor(CONTEXT) {
static void openFiles() {
// If logging open log file
if (logflg) {
- sprintf(logfnm, "%s.log", advnam);
- logfil = g_system->getSavefileManager()->openForSaving(logfnm);
+ Common::String filename = Common::String::format("%s.log", advnam);
+ logfil = g_system->getSavefileManager()->openForSaving(filename);
logflg = logfil != nullptr;
}