OSDN Git Service

Merge remote-tracking branch 'remotes/origin/feature/Fix-window-redrawer' into develop
[hengband/hengband.git] / src / io / exit-panic.c
index af8d1b3..ff74da2 100644 (file)
@@ -6,11 +6,14 @@
  * Windowsのコードからは呼ばれない。よってVSからは見えない
  */
 
-#include "exit-panic.h"
+#include "io/exit-panic.h"
+#include "core/disturbance.h"
 #include "world/world.h"
-#include "player-move.h"
-#include "signal-handlers.h"
-#include "save.h"
+#include "player/player-move.h"
+#include "io/signal-handlers.h"
+#include "save/save.h"
+#include "term/screen-processor.h"
+#include "view/display-messages.h"
 
 /*!
  * @brief Handle abrupt death of the visual system
@@ -33,6 +36,6 @@ void exit_game_panic(player_type *creature_ptr)
        creature_ptr->panic_save = 1;
        signals_ignore_tstp();
        (void)strcpy(creature_ptr->died_from, _("(緊急セーブ)", "(panic save)"));
-       if (!save_player(creature_ptr)) quit(_("緊急セーブ失敗!", "panic save failed!"));
+       if (!save_player(creature_ptr, SAVE_TYPE_CLOSE_GAME)) quit(_("緊急セーブ失敗!", "panic save failed!"));
        quit(_("緊急セーブ成功!", "panic save succeeded!"));
 }