Add static data path for ... static data. Like translations. Move translations there.

This commit is contained in:
Petr Mrázek
2014-05-17 18:21:32 +02:00
parent 8a8c4193e6
commit 7f2a16917e
4 changed files with 23 additions and 4 deletions

View File

@@ -147,6 +147,11 @@ public:
*/
bool openJsonEditor(const QString &filename);
/// this is the static data. it stores things that don't move.
const QString &staticData()
{
return staticDataPath;
}
/// this is the root of the 'installation'. Used for automatic updates
const QString &root()
{
@@ -215,6 +220,7 @@ private:
UpdateFlags m_updateOnExitFlags = None;
QString rootPath;
QString staticDataPath;
QString binPath;
QString dataPath;
QString origcwdPath;