OSDN Git Service

[Refactor] #40233 Moved display_store() from store.c to display-store.c/h
[hengband/hengband.git] / src / io / files-util.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 extern char savefile[1024];
6 extern char savefile_base[40];
7
8 extern concptr ANGBAND_DIR;
9 extern concptr ANGBAND_DIR_APEX;
10 extern concptr ANGBAND_DIR_BONE;
11 extern concptr ANGBAND_DIR_DATA;
12 extern concptr ANGBAND_DIR_EDIT;
13 extern concptr ANGBAND_DIR_SCRIPT;
14 extern concptr ANGBAND_DIR_FILE;
15 extern concptr ANGBAND_DIR_HELP;
16 extern concptr ANGBAND_DIR_INFO;
17 extern concptr ANGBAND_DIR_PREF;
18 extern concptr ANGBAND_DIR_SAVE;
19 extern concptr ANGBAND_DIR_USER;
20 extern concptr ANGBAND_DIR_XTRA;
21
22 typedef void(*display_player_pf)(player_type*, int);
23 typedef void(*update_playtime_pf)(void);
24
25 extern errr file_character(player_type *creature_ptr, concptr name, update_playtime_pf update_playtime, display_player_pf display_player);
26 extern errr get_rnd_line(concptr file_name, int entry, char *output);
27 void read_dead_file(char* buf, size_t buf_size);
28
29 #ifdef JP
30 extern errr get_rnd_line_jonly(concptr file_name, int entry, char *output, int count);
31 #endif
32 extern errr counts_write(player_type *creature_ptr, int where, u32b count);
33 extern u32b counts_read(player_type *creature_ptr, int where);