summaryrefslogtreecommitdiffstats
path: root/src/app/app.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-08-13 23:13:10 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-08-13 23:13:10 +0200
commit8b2bca72dd71a1c23db51269a147443c80758f10 (patch)
tree66d5aea574f5a4530492b6ab69956003427df98b /src/app/app.h
parentdc3cadd309a1ac1eb4921de69fed6037881b0b91 (diff)
parent5b45911856442ee7cbd451125c47fd13f21db58e (diff)
downloadcolobot-8b2bca72dd71a1c23db51269a147443c80758f10.tar.gz
colobot-8b2bca72dd71a1c23db51269a147443c80758f10.tar.bz2
colobot-8b2bca72dd71a1c23db51269a147443c80758f10.zip
Merge branch 'dev-graphics' into dev
Documentation, rendering functions & fixes
Diffstat (limited to 'src/app/app.h')
-rw-r--r--src/app/app.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/app.h b/src/app/app.h
index 0cfaad2..7991177 100644
--- a/src/app/app.h
+++ b/src/app/app.h
@@ -131,6 +131,9 @@ public:
//! Returns the code to be returned at main() exit
int GetExitCode();
+ //! Returns the message of error (set to something if exit code is not 0)
+ const std::string& GetErrorMessage();
+
//! Cleans up before exit
void Destroy();
@@ -234,6 +237,9 @@ protected:
//! Whether debug mode is enabled
bool m_debugMode;
+ //! Message to be displayed as error to the user
+ std::string m_errorMessage;
+
//! Current configuration of OpenGL display device
Gfx::GLDeviceConfig m_deviceConfig;
//! Previous configuration of OpenGL display device