<ClCompile Include="..\..\src\autopick.c" />\r
<ClCompile Include="..\..\src\avatar.c" />\r
<ClCompile Include="..\..\src\birth.c" />\r
- <ClCompile Include="..\..\src\cmd\cmd-sprocess-screen.c" />\r
+ <ClCompile Include="..\..\src\cmd\cmd-process-screen.c" />\r
<ClCompile Include="..\..\src\main\music-definitions-table.c" />\r
<ClCompile Include="..\..\src\main\sound-definitions-table.c" />\r
<ClCompile Include="..\..\src\market\building.c" />\r
<ClCompile Include="..\..\src\main\music-definitions-table.c">
<Filter>main</Filter>
</ClCompile>
- <ClCompile Include="..\..\src\cmd\cmd-sprocess-screen.c">
+ <ClCompile Include="..\..\src\cmd\cmd-process-screen.c">
<Filter>cmd</Filter>
</ClCompile>
</ItemGroup>
#include "angband.h"
#include "cmd/cmd-process-screen.h"
#include "cmd/cmd-draw.h"
-#include "core.h" // 暫定、後で消す.
#include "files.h"
#include "gameterm.h"
* @param creature_ptr プレーヤーへの参照ポインタ
* @return なし
*/
-void do_cmd_save_screen(player_type *creature_ptr)
+void do_cmd_save_screen(player_type *creature_ptr, void(*handle_stuff)(player_type*))
{
prt(_("記念撮影しますか? [(y)es/(h)tml/(n)o] ", "Save screen dump? [(y)es/(h)tml/(n)o] "), 0, 0);
bool html_dump = FALSE;
use_graphics = FALSE;
reset_visuals(creature_ptr);
creature_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
- handle_stuff(creature_ptr);
+ (*handle_stuff)(creature_ptr);
}
if (html_dump)
#pragma once
void do_cmd_save_screen_html_aux(char *filename, int message);
-void do_cmd_save_screen(player_type *creature_ptr);
+void do_cmd_save_screen(player_type *creature_ptr, void(*handle_stuff)(player_type*));
void do_cmd_load_screen(void);
}
case ')':
{
- do_cmd_save_screen(creature_ptr);
+ do_cmd_save_screen(creature_ptr, handle_stuff);
break;
}
case ']':
}
case ')':
{
- do_cmd_save_screen(client_ptr);
+ do_cmd_save_screen(client_ptr, handle_stuff);
break;
}
default:
if (get_check_strict(_("画面を保存しますか?", "Dump the screen? "), CHECK_NO_HISTORY))
{
- do_cmd_save_screen(creature_ptr);
+ do_cmd_save_screen(creature_ptr, handle_stuff);
}
flush();