OSDN Git Service

Since struct dirent only holds the last element in the path, build the full path...
[hengband/hengband.git] / src / knowledge / knowledge-mutations.c
1 /*!
2  * @brief 突然変異の一覧を出力する
3  * @date 2020/04/24
4  * @author Hourier
5  */
6
7 #include "knowledge/knowledge-mutations.h"
8 #include "core/show-file.h"
9 #include "io-dump/dump-util.h"
10 #include "io/mutations-dump.h"
11 #include "util/angband-files.h"
12
13 /*!
14  * @brief 突然変異表示コマンドの実装 / List mutations we have...
15  * @return なし
16  */
17 void do_cmd_knowledge_mutations(player_type *creature_ptr)
18 {
19     FILE *fff = NULL;
20     GAME_TEXT file_name[FILE_NAME_SIZE];
21     if (!open_temporary_file(&fff, file_name))
22         return;
23
24     dump_mutations(creature_ptr, fff);
25     angband_fclose(fff);
26
27     show_file(creature_ptr, TRUE, file_name, _("突然変異", "Mutations"), 0, 0);
28     fd_kill(file_name);
29 }