diff options
author | Paul Gilbert | 2019-06-26 19:58:04 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-07-06 15:27:07 -0700 |
commit | aebf25661076eaa382b3025f0123f6ceb7cf920b (patch) | |
tree | 2fb45b1f6b96f902aab7adaf9efe7eba04eff0c2 /engines/glk/alan3/utils.cpp | |
parent | 2de068a98aaeb8a1e9e8f2e719b5ff6ebf858b44 (diff) | |
download | scummvm-rg350-aebf25661076eaa382b3025f0123f6ceb7cf920b.tar.gz scummvm-rg350-aebf25661076eaa382b3025f0123f6ceb7cf920b.tar.bz2 scummvm-rg350-aebf25661076eaa382b3025f0123f6ceb7cf920b.zip |
GLK: ALAN3: Removal of #ifdef blocks
Diffstat (limited to 'engines/glk/alan3/utils.cpp')
-rw-r--r-- | engines/glk/alan3/utils.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/glk/alan3/utils.cpp b/engines/glk/alan3/utils.cpp index 9b9b6edbef..4b01b46d68 100644 --- a/engines/glk/alan3/utils.cpp +++ b/engines/glk/alan3/utils.cpp @@ -42,8 +42,7 @@ namespace Alan3 { return buffers... */ -void terminate(int code) -{ +void terminate(int code) { newline(); terminateStateStack(); @@ -53,11 +52,7 @@ void terminate(int code) if (memory) deallocate(memory); -#ifdef HAVE_GLK g_vm->glk_exit(); -#else - exit(code); -#endif } /*======================================================================*/ @@ -79,9 +74,8 @@ void usage(const char *programName) printf("\n\nUsage:\n\n"); printf(" %s [<switches>] <adventure>\n\n", programName); printf("where the possible optional switches are:\n"); -#ifdef HAVE_GLK + g_vm->glk_set_style(style_Preformatted); -#endif printf(" -v verbose mode\n"); printf(" -l log transcript to a file\n"); printf(" -c log player commands to a file\n"); @@ -90,9 +84,7 @@ void usage(const char *programName) printf(" -t[<n>] trace game execution, higher <n> gives more trace\n"); printf(" -i ignore version and checksum errors\n"); printf(" -r make regression test easier (don't timestamp, page break, randomize...)\n"); -#ifdef HAVE_GLK g_vm->glk_set_style(style_Normal); -#endif } |