OSDN Git Service

[Refactor] #40467 Moved rd_ghost() from load.c to dummy-loader.c/h
authorHourier <hourier@users.sourceforge.jp>
Sun, 5 Jul 2020 09:50:58 +0000 (18:50 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 5 Jul 2020 09:50:58 +0000 (18:50 +0900)
src/savedata/dummy-loader.c
src/savedata/dummy-loader.h
src/savedata/load.c

index eb61971..32d56be 100644 (file)
@@ -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);
+}
index b833a9e..bbc19c4 100644 (file)
@@ -5,3 +5,4 @@
 void rd_dummy1(void);
 void rd_dummy2(void);
 void rd_dummy_monsters(player_type *creature_ptr);
+void rd_ghost(void);
index 43f3494..5ea5756 100644 (file)
@@ -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 エラーコード
  */