summaryrefslogtreecommitdiffstats
path: root/src/app/app.h
diff options
context:
space:
mode:
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