From ebfbaad4f4807ff1cd8cdb2a8516948c882e4ac6 Mon Sep 17 00:00:00 2001 From: Deskull Date: Sat, 2 Sep 2017 12:24:36 +0900 Subject: [PATCH] =?utf8?q?#37449=20(2.2.0.78)=202.2.0.75=E3=82=88=E3=82=8A?= =?utf8?q?=E5=89=8D=E3=81=AE=E3=82=BB=E3=83=BC=E3=83=96=E3=83=95=E3=82=A1?= =?utf8?q?=E3=82=A4=E3=83=AB=E3=82=92=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=82=80?= =?utf8?q?=E5=87=A6=E7=90=86=E3=81=A8=E3=80=81=E3=83=AD=E3=83=BC=E3=83=89?= =?utf8?q?=E6=99=82=E3=81=AE=E3=82=BB=E3=83=BC=E3=83=96=E3=83=87=E3=83=BC?= =?utf8?q?=E3=82=BF=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E8=A1=A8?= =?utf8?q?=E7=A4=BA=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=82=20/=20Fix=20loadin?= =?utf8?q?g=20save=20data=20less=20than=202.2.0.75=20and=20display=20of=20?= =?utf8?q?save=20data=20version=20on=20loading.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/defines.h | 2 +- src/load.c | 16 ++++++++-------- src/save.c | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/defines.h b/src/defines.h index 858b6dbab..6bec0b7af 100644 --- a/src/defines.h +++ b/src/defines.h @@ -53,7 +53,7 @@ #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */ #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */ #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */ -#define FAKE_VER_EXTRA 77 /*!< ゲームのバージョン番号定義(エクストラ番号) */ +#define FAKE_VER_EXTRA 78 /*!< ゲームのバージョン番号定義(エクストラ番号) */ /*! diff --git a/src/load.c b/src/load.c index 11db04770..8e213eff9 100644 --- a/src/load.c +++ b/src/load.c @@ -2372,9 +2372,9 @@ static void rd_messages(void) if (h_older_than(2, 2, 0, 75)) { - s16b num; + u16b num; /* Total */ - rd_s16b(&num); + rd_u16b(&num); /* Read the messages */ for (i = 0; i < num; i++) @@ -3298,12 +3298,6 @@ static errr rd_savefile_new_aux(void) #endif - /* Mention the savefile version */ - note(format( - _("バージョン %d.%d.%d のセーブ・ファイルをロード中...", "Loading a %d.%d.%d savefile..."), - (z_major > 9) ? z_major - 10 : z_major, z_minor, z_patch)); - - /* Strip the version bytes */ strip_bytes(4); @@ -3322,6 +3316,12 @@ static errr rd_savefile_new_aux(void) rd_byte(&h_ver_minor); rd_byte(&h_ver_major); + /* Mention the savefile version */ + note(format( + _("バージョン %d.%d.%d.%d のセーブ・ファイルをロード中...", "Loading a %d.%d.%d.%d savefile..."), + (h_ver_major > 9) ? h_ver_major - 10 : h_ver_major, h_ver_minor, h_ver_patch, h_ver_extra)); + + /* Operating system info */ rd_u32b(&sf_system); diff --git a/src/save.c b/src/save.c index 217923428..622087098 100644 --- a/src/save.c +++ b/src/save.c @@ -2030,7 +2030,7 @@ bool load_player(void) /* Message */ #ifdef JP - msg_format("エラー(%s)がバージョン%d.%d.%d 用セーブファイル読み込中に発生。", + msg_format("エラー(%s)がバージョン%d.%d.%d 用セーブファイル読み込み中に発生。", what, (z_major>9) ? z_major - 10 : z_major, z_minor, z_patch); #else msg_format("Error (%s) reading %d.%d.%d savefile.", -- 2.11.0