summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/state.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-20 12:19:31 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-20 12:19:31 +0000
commit9ff31d52f2dad36c684c3458c35f0666a0fb28e4 (patch)
treed74cb4ba9591eb4e904d7940c6405d6cc8321fd9 /crawl-ref/source/state.h
parent1c9f524503622db5774b18a6fca37b71739a5946 (diff)
downloadcrawl-ref-9ff31d52f2dad36c684c3458c35f0666a0fb28e4.tar.gz
crawl-ref-9ff31d52f2dad36c684c3458c35f0666a0fb28e4.zip
Fall back to ASCII if Unicode locale is unavailable (Guus). Also queue up startup error messages and display them before the newgame screen instead of emitting them to stderr.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2882 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/state.h')
-rw-r--r--crawl-ref/source/state.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/state.h b/crawl-ref/source/state.h
index 8347cd0470..cd572ed865 100644
--- a/crawl-ref/source/state.h
+++ b/crawl-ref/source/state.h
@@ -14,6 +14,7 @@
#define STATE_H
#include "enum.h"
+#include <vector>
struct god_act_state
{
@@ -65,6 +66,8 @@ struct game_state
int prev_repetition_turn;
bool cmd_repeat_started_unsafe;
+ std::vector<std::string> startup_errors;
+
std::vector<std::string> input_line_strs;
unsigned int input_line_curr;
@@ -80,6 +83,9 @@ protected:
public:
game_state();
+ void add_startup_error(const std::string &error);
+ void show_startup_errors();
+
bool is_replaying_keys() const;
bool is_repeating_cmd() const;