Hugo is one of the leading interactive fiction design systems. In addition to being capable of producing leading-edge text adventures, it also allows a developer to incorporate true-color graphics display (which are optional for those who lack either the hardware or inclination to view graphics) as well as sound effects and music. And it's free. This is the ncurses port, without support for sound or graphics.
20 lines
523 B
Text
20 lines
523 B
Text
$NetBSD: patch-ab,v 1.1.1.1 2003/10/10 15:25:08 dillo Exp $
|
|
|
|
--- source/hcfile.c.orig Wed Jan 8 05:26:08 2003
|
|
+++ source/hcfile.c
|
|
@@ -380,6 +380,15 @@ FILE *TrytoOpen(char *f, char *p, char *
|
|
return tempfile;
|
|
}
|
|
}
|
|
+
|
|
+ if (STRICMP(d, "lib") == 0) {
|
|
+ hugo_makepath(temppath, "", HUGO_LIBDIR, fname, ext);
|
|
+ if ((tempfile = HUGO_FOPEN(temppath, p)))
|
|
+ {
|
|
+ strcpy(f, temppath); /* the new pathname */
|
|
+ return tempfile;
|
|
+ }
|
|
+ }
|
|
}
|
|
|
|
/* Try to open the given, vanilla filename */
|