Replaced now-obsolete os_path_open() with os_load_story()
authorDavid Griffith <dave@661.org>
Thu, 7 Feb 2013 03:43:53 +0000 (19:43 -0800)
committerDavid Griffith <dave@661.org>
Thu, 7 Feb 2013 03:43:53 +0000 (19:43 -0800)
src/dumb/dumb_init.c

index fd3bf19b5a7e5a8e8db4c2ad1f35e99b360913af..623b7e16ae2a2b7f1a9b5aad46f9477feb1d4877 100644 (file)
@@ -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)