diff options
author | Paul Gilbert | 2019-06-23 15:27:57 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-23 16:19:42 -0700 |
commit | e7fbd9268c9bd4a21a9f4741d4636c722368847c (patch) | |
tree | b86649beaebfc3d0b6facf9c4ce7fb707df095c4 /engines/glk/alan2/main.cpp | |
parent | 16f8c024d1dfba31e9f764818936384a429ac663 (diff) | |
download | scummvm-rg350-e7fbd9268c9bd4a21a9f4741d4636c722368847c.tar.gz scummvm-rg350-e7fbd9268c9bd4a21a9f4741d4636c722368847c.tar.bz2 scummvm-rg350-e7fbd9268c9bd4a21a9f4741d4636c722368847c.zip |
GLK: ALAN2: Cleanup of data text file opening
Diffstat (limited to 'engines/glk/alan2/main.cpp')
-rw-r--r-- | engines/glk/alan2/main.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
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); |