summaryrefslogtreecommitdiffstats
path: root/src/app/app.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-09 17:51:10 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-09 17:51:10 +0200
commitefe4f0baddf10124581e4fcb88d55a52838b06a1 (patch)
treec07882eb005e486abe1dbb03d008f6cca2898fe6 /src/app/app.h
parentb3d5491af4f953e8d63800897c40d602de9e9305 (diff)
downloadcolobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.gz
colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.bz2
colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.zip
Refactoring in src/common
- refactored CInstanceManager and some headers - removed old headers
Diffstat (limited to 'src/app/app.h')
-rw-r--r--src/app/app.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/app/app.h b/src/app/app.h
index 7991177..b92c6b6 100644
--- a/src/app/app.h
+++ b/src/app/app.h
@@ -22,8 +22,7 @@
#pragma once
-
-#include "common/misc.h"
+#include "common/global.h"
#include "common/singleton.h"
#include "graphics/core/device.h"
#include "graphics/engine/engine.h"
@@ -198,6 +197,12 @@ public:
//! Returns the full path to a file in data directory
std::string GetDataFilePath(const std::string &dirName, const std::string &fileName);
+ //! Management of language
+ //@{
+ Language GetLanguage();
+ void SetLanguage(Language language);
+ //@}
+
protected:
//! Creates the window's SDL_Surface
bool CreateVideoSurface();
@@ -267,5 +272,8 @@ protected:
//! Path to directory with data files
std::string m_dataPath;
+
+ //! Application language
+ Language m_language;
};