From 6a996bcf81beebd8536986e7df07f64a88c8e393 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Wed, 6 Feb 2013 19:43:53 -0800 Subject: [PATCH] Replaced now-obsolete os_path_open() with os_load_story() --- src/dumb/dumb_init.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/dumb/dumb_init.c b/src/dumb/dumb_init.c index fd3bf19..623b7e1 100644 --- a/src/dumb/dumb_init.c +++ b/src/dumb/dumb_init.c @@ -198,19 +198,9 @@ void os_fatal (const char *s, ...) exit(1); } -FILE *os_path_open(const char *name, const char *mode) +FILE *os_load_story(void) { - FILE *fp; - char buf[FILENAME_MAX + 1]; - char *p; - - /* Let's see if the file is in the currect directory */ - /* or if the user gave us a full path. */ - if ((fp = fopen(name, mode))) { - return fp; - } - /* Sorry, but dumb frotz is too dumb to care about searching paths. */ - return NULL; + return fopen(f_setup.story_file, "rb"); } void os_init_setup(void) -- 2.34.1