OSDN Git Service

オンラインヘルプ'?'コマンドから、readme.txt と autopick.txtを参照
[hengbandforosx/hengbandosx.git] / src / files.c
index cca364e..d2b799e 100644 (file)
@@ -4988,6 +4988,27 @@ sprintf(caption, "
                fff = my_fopen(path, "r");
        }
 
+       /* Look in "info" */
+       if (!fff)
+       {
+               /* Build the filename */
+               path_build(path, 1024, ANGBAND_DIR, name);
+
+               for (i = 0; path[i]; i++)
+                       if ('\\' == path[i])
+                               path[i] = PATH_SEP[0];
+
+               /* Caption */
+#ifdef JP
+sprintf(caption, "¥¹¥Ý¥¤¥é¡¼¡¦¥Õ¥¡¥¤¥ë'%s'", name);
+#else
+               sprintf(caption, "Info file '%s'", name);
+#endif
+
+               /* Open the file */
+               fff = my_fopen(path, "r");
+       }
+
        /* Oops */
        if (!fff)
        {