OSDN Git Service

[Refactor] #39964 Removed the dependency from read-pref-file to autopick-pref-processor
[hengband/hengband.git] / src / io / read-pref-file.h
index 03aa856..4c5d92e 100644 (file)
@@ -1,7 +1,12 @@
 #pragma once
 
-#include "angband.h"
+extern char auto_dump_header[];
+extern char auto_dump_footer[];
 
-extern errr process_pref_file(player_type *creature_ptr, concptr name);
-extern errr process_autopick_file(player_type *creature_ptr, concptr name);
-extern errr process_histpref_file(player_type *creature_ptr, concptr name);
+extern errr process_pref_file(player_type *creature_ptr, concptr name, void(*process_autopick_file_command)(char*));
+extern errr process_autopick_file(player_type *creature_ptr, concptr name, void(*process_autopick_file_command)(char*));
+extern errr process_histpref_file(player_type *creature_ptr, concptr name, void(*process_autopick_file_command)(char*));
+
+void auto_dump_printf(FILE *auto_dump_stream, concptr fmt, ...);
+bool open_auto_dump(FILE **fpp, concptr buf, concptr mark);
+void close_auto_dump(FILE **fpp, concptr auto_dump_mark);