diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-02-13 13:56:52 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-02-13 13:56:52 +0100 |
commit | 4d237a87eb76eb4c6bcc5d8cbf7544a8f3184f30 (patch) | |
tree | 5e87923522f444880a6be4239e162c16312408a4 /src/files.hpp | |
parent | f13c5091e4864e957c83a35621365c8b510b80ba (diff) |
Reduce file-open/close boilerplate and simplify formatting
- We introduce a show_string() which will allow us to go without
actually writing a file if we want to later.
- Use cppformat to simplify the output formatting.
Diffstat (limited to 'src/files.hpp')
-rw-r--r-- | src/files.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/files.hpp b/src/files.hpp index d61415f6..d90f6660 100644 --- a/src/files.hpp +++ b/src/files.hpp @@ -3,6 +3,9 @@ #include "h-basic.h" #include "monster_type_fwd.hpp" +#include <string> +#include <vector> + extern void html_screenshot(cptr name); extern void help_file_screenshot(cptr name); extern void player_flags(u32b* f1, u32b* f2, u32b* f3, u32b* f4, u32b* f5, u32b* esp); @@ -13,6 +16,7 @@ extern cptr describe_player_location(void); extern errr file_character(cptr name, bool_ full); extern errr process_pref_file_aux(char *buf); extern errr process_pref_file(cptr name); +extern void show_string(const char *lines, const char *title, int line = 0); extern void show_file(cptr name, cptr what, int line = 0); extern void do_cmd_help(void); extern void process_player_base(void); |