From: Hourier Date: Sun, 5 Jul 2020 09:50:58 +0000 (+0900) Subject: [Refactor] #40467 Moved rd_ghost() from load.c to dummy-loader.c/h X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bfc00a223842b70160bdf24003508667e4db9062;p=hengband%2Fhengband.git [Refactor] #40467 Moved rd_ghost() from load.c to dummy-loader.c/h --- diff --git a/src/savedata/dummy-loader.c b/src/savedata/dummy-loader.c index eb619710c..32d56be7f 100644 --- a/src/savedata/dummy-loader.c +++ b/src/savedata/dummy-loader.c @@ -53,3 +53,16 @@ void rd_dummy_monsters(player_type *creature_ptr) rd_monster(creature_ptr, &dummy_mon); } } + +/*! + * @brief ダミー情報スキップ / Strip the "ghost" info + * @return なし + * @details + * This is such a nasty hack it hurts. + */ +void rd_ghost(void) +{ + char buf[64]; + rd_string(buf, sizeof(buf)); + strip_bytes(60); +} diff --git a/src/savedata/dummy-loader.h b/src/savedata/dummy-loader.h index b833a9e5d..bbc19c477 100644 --- a/src/savedata/dummy-loader.h +++ b/src/savedata/dummy-loader.h @@ -5,3 +5,4 @@ void rd_dummy1(void); void rd_dummy2(void); void rd_dummy_monsters(player_type *creature_ptr); +void rd_ghost(void); diff --git a/src/savedata/load.c b/src/savedata/load.c index 43f3494d8..5ea5756e2 100644 --- a/src/savedata/load.c +++ b/src/savedata/load.c @@ -155,19 +155,6 @@ static void rd_randomizer(void) } /*! - * @brief ダミー情報スキップ / Strip the "ghost" info - * @return なし - * @details - * This is such a nasty hack it hurts. - */ -static void rd_ghost(void) -{ - char buf[64]; - rd_string(buf, sizeof(buf)); - strip_bytes(60); -} - -/*! * @brief ロード処理全体のサブ関数 / Actually read the savefile * @return エラーコード */