path: root/src/corrupt.hpp
diff options
authorBardur Arantsson <>2016-02-13 13:56:52 +0100
committerBardur Arantsson <>2016-02-13 13:56:52 +0100
commit4d237a87eb76eb4c6bcc5d8cbf7544a8f3184f30 (patch)
tree5e87923522f444880a6be4239e162c16312408a4 /src/corrupt.hpp
parentf13c5091e4864e957c83a35621365c8b510b80ba (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/corrupt.hpp')
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corrupt.hpp b/src/corrupt.hpp
index c200762e..d7ab2e97 100644
--- a/src/corrupt.hpp
+++ b/src/corrupt.hpp
@@ -1,7 +1,9 @@
#include "h-basic.h"
+#include <string>
extern void gain_random_corruption();
-extern void dump_corruptions(FILE *OutFile, bool_ color, bool_ header);
+extern std::string dump_corruptions(bool color, bool header);
extern void lose_corruption();
extern bool_ player_has_corruption(int corruption_idx);
extern void player_gain_corruption(int corruption_idx);