From e7fbd9268c9bd4a21a9f4741d4636c722368847c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 23 Jun 2019 15:27:57 -0700 Subject: GLK: ALAN2: Cleanup of data text file opening --- engines/glk/alan2/main.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'engines/glk/alan2/main.cpp') diff --git a/engines/glk/alan2/main.cpp b/engines/glk/alan2/main.cpp index 1371ace2e1..58c483a852 100644 --- a/engines/glk/alan2/main.cpp +++ b/engines/glk/alan2/main.cpp @@ -1376,23 +1376,6 @@ static void movactor(CONTEXT) { */ static void openFiles() { - { - char *s = strrchr(codfnm, '\\'); - if (!s) s = strrchr(codfnm, '/'); - g_vm->garglk_set_story_name(s ? s + 1 : codfnm); - } - - // Open Text file - strcpy(txtfnm, advnam); - strcat(txtfnm, ".dat"); - - Common::File *f = new Common::File(); - if (!f->open(txtfnm)) { - delete f; - Common::String s = Common::String::format("Can't open adventure text data file '%s'.", txtfnm); - ::error("%s", s.c_str()); - } - // If logging open log file if (logflg) { sprintf(logfnm, "%s.log", advnam); -- cgit v1.2.3