OSDN Git Service

[fix]ティーンチの表記を修正
[hengband/hengband.git] / src / init2.c
index 86c4133..19b5dae 100644 (file)
@@ -43,8 +43,7 @@
 #endif /* CHECK_MODIFICATION_TIME */
 #endif
 
-
-
+static void put_title(void);
 
 /*!
  * @brief 各データファイルを読み取るためのパスを取得する
@@ -113,28 +112,6 @@ void init_file_paths(char *path)
        /* Prepare to append to the Base Path */
        tail = path + strlen(path);
 
-
-#ifdef VM
-
-       /*** Use "flat" paths with VM/ESA ***/
-
-       /* Use "blank" path names */
-       ANGBAND_DIR_APEX = string_make("");
-       ANGBAND_DIR_BONE = string_make("");
-       ANGBAND_DIR_DATA = string_make("");
-       ANGBAND_DIR_EDIT = string_make("");
-       ANGBAND_DIR_SCRIPT = string_make("");
-       ANGBAND_DIR_FILE = string_make("");
-       ANGBAND_DIR_HELP = string_make("");
-       ANGBAND_DIR_INFO = string_make("");
-       ANGBAND_DIR_SAVE = string_make("");
-       ANGBAND_DIR_USER = string_make("");
-       ANGBAND_DIR_XTRA = string_make("");
-
-
-#else /* VM */
-
-
        /*** Build the sub-directory names ***/
 
        /* Build a path name */
@@ -197,8 +174,6 @@ void init_file_paths(char *path)
        strcpy(tail, "xtra");
        ANGBAND_DIR_XTRA = string_make(path);
 
-#endif /* VM */
-
 
 #ifdef NeXT
 
@@ -1830,7 +1805,7 @@ static errr init_other(void)
        quark_init();
 
        /* Message variables */
-       C_MAKE(message__ptr, MESSAGE_MAX, u16b);
+       C_MAKE(message__ptr, MESSAGE_MAX, u32b);
        C_MAKE(message__buf, MESSAGE_BUF, char);
 
        /* Hack -- No messages yet */
@@ -2392,6 +2367,7 @@ void init_angband(void)
        /* Close it */
        (void)fd_close(fd);
 
+       put_title();
 
        /*** Initialize some arrays ***/
 
@@ -2505,6 +2481,25 @@ void init_angband(void)
 }
 
 /*!
+ * @brief タイトル記述
+ * @return なし
+ */
+static void put_title(void)
+{
+       char title[120];
+       int col;
+#if H_VER_EXTRA > 0
+       sprintf(title, _("変愚蛮怒 %d.%d.%d.%d(%s)", "Hengband %d.%d.%d.%d(%s)"), H_VER_MAJOR, H_VER_MINOR, H_VER_PATCH, H_VER_EXTRA,
+#else
+       sprintf(title, _("変愚蛮怒 %d.%d.%d(%s)", "Hengband %d.%d.%d(%s)"), H_VER_MAJOR, H_VER_MINOR, H_VER_PATCH,
+#endif
+       IS_STABLE_VERSION ? _("安定版", "Stable") : _("開発版", "Developing"));
+       col = (80 - strlen(title)) / 2;
+       col = col < 0 ? 0 : col;
+       prt(title, VER_INFO_ROW, col);
+}
+
+/*!
  * @brief サムチェック情報を出力 / Get check sum in string form
  * @return サムチェック情報の文字列
  */