Hengband  2.2.1
files.h
[詳解]
1 #pragma once
2 
3 #define TOKENIZE_CHECKQUOTE 0x01 /* Special handling of single quotes */
4 
5 extern char savefile[1024];
6 extern char savefile_base[40];
7 
8 extern concptr ANGBAND_DIR;
21 
22 extern s16b signal_count;
23 
24 /* files.c */
25 extern void safe_setuid_drop(void);
26 extern void safe_setuid_grab(void);
27 extern s16b tokenize(char *buf, s16b num, char **tokens, BIT_FLAGS mode);
28 extern void display_player(player_type *creature_ptr, int mode);
29 extern errr make_character_dump(FILE *fff);
30 extern errr file_character(concptr name);
31 extern errr process_pref_file_command(char *buf);
32 extern concptr process_pref_file_expr(char **sp, char *fp);
33 extern errr process_pref_file(concptr name);
36 extern void print_equippy(void);
37 extern void display_player_equippy(TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode);
38 extern errr check_time_init(void);
39 extern errr check_load_init(void);
40 extern errr check_time(void);
41 extern errr check_load(void);
42 extern bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAGS mode);
43 extern void do_cmd_help(void);
44 extern void process_player_name(bool sf);
45 extern void get_name(void);
46 extern void do_cmd_save_game(int is_autosave);
47 extern void do_cmd_save_and_exit(void);
48 extern void exit_game_panic(void);
49 extern void signals_ignore_tstp(void);
50 extern void signals_handle_tstp(void);
51 extern void signals_init(void);
52 extern errr get_rnd_line(concptr file_name, int entry, char *output);
53 extern void print_tomb(void);
54 extern void show_info(void);
55 
56 #ifdef JP
57 extern errr get_rnd_line_jonly(concptr file_name, int entry, char *output, int count);
58 #endif
59 extern errr counts_write(int where, u32b count);
60 extern u32b counts_read(int where);
char * buf
Definition: chuukei.c:98
void do_cmd_save_game(int is_autosave)
concptr ANGBAND_DIR_EDIT
Textual template files for the "*_info" arrays (ascii) These files are portable between platforms
Definition: files.c:74
s16b tokenize(char *buf, s16b num, char **tokens, BIT_FLAGS mode)
各種データテキストをトークン単位に分解する / Extract the first few "tokens" from a buffer
Definition: files.c:201
void display_player(player_type *creature_ptr, int mode)
プレイヤーのステータス表示メイン処理 Display the character on the screen (various modes)
Definition: files.c:3834
void do_cmd_save_and_exit(void)
void do_cmd_help(void)
const char * concptr
文字列定数用ポインタ定義 / A simple pointer (to unmodifiable strings)
Definition: h-type.h:47
void signals_init(void)
concptr ANGBAND_DIR_FILE
Various extra files (ascii) These files may be portable between platforms
Definition: files.c:76
void safe_setuid_grab(void)
ファイルのグラブパーミッションチェック / Hack – grab permissions
Definition: files.c:145
char savefile[1024]
Definition: files.c:90
concptr process_pref_file_expr(char **sp, char *fp)
process_pref_fileのサブルーチンとして条件分岐処理の解釈と結果を返す / Helper function for "process_pref_file()"
Definition: files.c:832
errr counts_write(int where, u32b count)
bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAGS mode)
void print_tomb(void)
concptr ANGBAND_DIR_DATA
Binary image files for the "*_info" arrays (binary) These files are not portable between platforms
Definition: files.c:73
char savefile_base[40]
Definition: files.c:91
concptr ANGBAND_DIR_HELP
Help files (normal) for the online help (ascii) These files are portable between platforms
Definition: files.c:77
void print_equippy(void)
プレイヤーの装備一覧シンボルを固定位置に表示する
Definition: view-mainwindow.c:2466
void signals_handle_tstp(void)
errr process_autopick_file(concptr name)
errr make_character_dump(FILE *fff)
ダンプ出力のメインルーチン Output the character dump to a file
Definition: files.c:4984
void process_player_name(bool sf)
int TERM_LEN
コンソール表示座標の型定義
Definition: h-type.h:236
errr process_histpref_file(concptr name)
void safe_setuid_drop(void)
ファイルのドロップパーミッションチェック / Hack – drop permissions
Definition: files.c:104
u32b BIT_FLAGS
32ビットのフラグ配列の型定義
Definition: h-type.h:225
concptr ANGBAND_DIR_SAVE
Savefiles for current characters (binary)
Definition: files.c:80
int errr
エラーコードの定義 / Error codes for function return values
Definition: h-type.h:57
concptr ANGBAND_DIR_XTRA
Various extra files (binary) These files are rarely portable between platforms
Definition: files.c:82
errr check_time(void)
Angbandプレイ禁止時刻をチェック / Handle CHECK_TIME
Definition: files.c:1328
void get_name(void)
concptr ANGBAND_DIR_PREF
Default user "preference" files (ascii) These files are rarely portable between platforms
Definition: files.c:79
u16b BIT_FLAGS16
16ビットのフラグ配列の型定義
Definition: h-type.h:226
concptr ANGBAND_DIR_USER
User "preference" files (ascii) These files are rarely portable between platforms
Definition: files.c:81
void show_info(void)
void exit_game_panic(void)
concptr ANGBAND_DIR_APEX
High score files (binary) These files may be portable between platforms
Definition: files.c:71
concptr ANGBAND_DIR_INFO
Help files (spoilers) for the online help (ascii) These files are portable between platforms
Definition: files.c:78
concptr ANGBAND_DIR
Path name: The main "lib" directory This variable is not actually used anywhere in the code
Definition: files.c:70
errr check_time_init(void)
Angbandプレイ禁止時刻の初期化 / Initialize CHECK_TIME
Definition: files.c:1358
unsigned long u32b
Definition: h-type.h:108
u32b counts_read(int where)
errr process_pref_file_command(char *buf)
設定ファイルの各行から各種テキスト情報を取得する / Parse a sub-file of the "extra info" (format shown below)
Definition: files.c:432
Definition: player-status.h:86
void display_player_equippy(TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode)
プレイヤーの装備一覧をシンボルで並べる Equippy chars
Definition: files.c:2843
void signals_ignore_tstp(void)
errr process_pref_file(concptr name)
pref設定ファイルを読み込み設定を反映させる / Process the "user pref file" with the given name
Definition: files.c:1270
signed short s16b
Definition: h-type.h:98
errr file_character(concptr name)
プレイヤーステータスをファイルダンプ出力する Hack – Dump a character description file
Definition: files.c:5026
static FILE * fff
Definition: load.c:96
s16b signal_count
Definition: files.c:84
errr check_load_init(void)
Angbandプレイ禁止ホストの設定初期化 / Initialize CHECK_LOAD
Definition: files.c:1477
errr get_rnd_line(concptr file_name, int entry, char *output)
concptr ANGBAND_DIR_SCRIPT
Script files These files are portable between platforms.
Definition: files.c:75
concptr ANGBAND_DIR_BONE
Bone files for player ghosts (ascii) These files are portable between platforms
Definition: files.c:72
errr check_load(void)
Angbandプレイ禁止ホストのチェック / Handle CHECK_LOAD
Definition: files.c:1445