• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision045cb5358ed7503a481b3cdf1c0772fd63dd1ed6 (tree)
Time2019-05-05 11:40:29
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 save.h を追加して宣言を移動.

Change Summary

Incremental Difference

--- a/Hengband_vcs2017/Hengband/Hengband.vcxproj
+++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj
@@ -373,6 +373,7 @@
373373 <ClInclude Include="..\..\src\rooms-vault.h" />
374374 <ClInclude Include="..\..\src\rooms.h" />
375375 <ClInclude Include="..\..\src\rumor.h" />
376+ <ClInclude Include="..\..\src\save.h" />
376377 <ClInclude Include="..\..\src\scores.h" />
377378 <ClInclude Include="..\..\src\selfinfo.h" />
378379 <ClInclude Include="..\..\src\shoot.h" />
--- a/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
+++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
@@ -735,6 +735,9 @@
735735 <ClInclude Include="..\..\src\snipe.h">
736736 <Filter>combat</Filter>
737737 </ClInclude>
738+ <ClInclude Include="..\..\src\save.h">
739+ <Filter>io</Filter>
740+ </ClInclude>
738741 </ItemGroup>
739742 <ItemGroup>
740743 <None Include="..\..\src\wall.bmp" />
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -70,7 +70,7 @@ hengband_SOURCES = \
7070 report.c rooms.c rooms-city.c rooms-city.h rooms-fractal.c rooms-fractal.h \
7171 rooms.h rooms-normal.c rooms-normal.h rooms-pitnest.c rooms-pitnest.h \
7272 rooms-special.c rooms-special.h rooms-trap.c rooms-trap.h rooms-vault.c \
73- rooms-vault.h save.c scores.c scores.h selfinfo.c selfinfo.h \
73+ rooms-vault.h save.c save.h scores.c scores.h selfinfo.c selfinfo.h \
7474 shoot.c shoot.h snipe.c snipe.h \
7575 \
7676 rumor.h rumor.c \
--- a/src/birth.c
+++ b/src/birth.c
@@ -42,6 +42,7 @@
4242 #include "objectkind.h"
4343 #include "monsterrace.h"
4444 #include "autopick.h"
45+#include "save.h"
4546
4647 /*
4748 * The last character rolled,
--- a/src/core.c
+++ b/src/core.c
@@ -75,6 +75,7 @@
7575 #include "player-effects.h"
7676 #include "scores.h"
7777 #include "autopick.h"
78+#include "save.h"
7879
7980 concptr ANGBAND_SYS = "xxx"; //!< Hack -- The special Angband "System Suffix" This variable is used to choose an appropriate "pref-xxx" file
8081
--- a/src/externs.h
+++ b/src/externs.h
@@ -246,12 +246,6 @@ extern bool load_floor(saved_floor_type *sf_ptr, BIT_FLAGS mode);
246246 /* racial.c */
247247 extern void do_cmd_racial_power(void);
248248
249-/* save.c */
250-extern bool save_player(void);
251-extern bool load_player(void);
252-extern void remove_loc(void);
253-extern bool save_floor(saved_floor_type *sf_ptr, BIT_FLAGS mode);
254-
255249 /* xtra1.c */
256250 extern void handle_stuff(void);
257251 extern void update_output(void);
--- a/src/files.c
+++ b/src/files.c
@@ -61,6 +61,7 @@
6161 #include "melee.h"
6262 #include "objectkind.h"
6363 #include "autopick.h"
64+#include "save.h"
6465
6566 concptr ANGBAND_DIR; //!< Path name: The main "lib" directory This variable is not actually used anywhere in the code
6667 concptr ANGBAND_DIR_APEX; //!< High score files (binary) These files may be portable between platforms
--- a/src/floor-save.c
+++ b/src/floor-save.c
@@ -33,7 +33,7 @@
3333 #include "world.h"
3434 #include "spells.h"
3535 #include "cmd-dump.h"
36-
36+#include "save.h"
3737 static FLOOR_IDX new_floor_id; /*!<次のフロアのID / floor_id of the destination */
3838 static u32b change_floor_mode; /*!<フロア移行処理に関するフラグ / Mode flags for changing floor */
3939 static u32b latest_visit_mark; /*!<フロアを渡った回数?(確認中) / Max number of visit_mark */
--- a/src/load.c
+++ b/src/load.c
@@ -76,7 +76,7 @@
7676 #include "world.h"
7777 #include "objectkind.h"
7878 #include "object-ego.h"
79-
79+#include "save.h"
8080
8181 /*
8282 * Maximum number of tries for selection of a proper quest monster
--- a/src/main-win.c
+++ b/src/main-win.c
@@ -116,6 +116,7 @@
116116 #include <direct.h>
117117 #include <locale.h>
118118 #include "z-term.h"
119+#include "save.h"
119120
120121 /*
121122 * Extract the "WIN32" flag from the compiler
--- a/src/player-effects.c
+++ b/src/player-effects.c
@@ -45,7 +45,7 @@
4545 #include "world.h"
4646 #include "objectkind.h"
4747 #include "autopick.h"
48-
48+#include "save.h"
4949
5050 /*!
5151 * @brief 修行僧の構え能力テーブル
--- a/src/save.c
+++ b/src/save.c
@@ -13,6 +13,7 @@
1313
1414 #include "angband.h"
1515 #include "util.h"
16+#include "save.h"
1617
1718 #include "artifact.h"
1819 #include "sort.h"
--- /dev/null
+++ b/src/save.h
@@ -0,0 +1,8 @@
1+#pragma once
2+
3+/* save.c */
4+extern bool save_player(void);
5+extern bool load_player(void);
6+extern void remove_loc(void);
7+extern bool save_floor(saved_floor_type *sf_ptr, BIT_FLAGS mode);
8+
Show on old repository browser