summaryrefslogtreecommitdiffstats
path: root/logic/Env.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-12-27 03:34:03 +0100
committerPetr Mrázek <peterix@gmail.com>2015-12-27 03:34:03 +0100
commite8063d193d56acc10c5a533cffd95c9271b24e65 (patch)
treef7ba9783d4c3fd2667f095417bce50f22789970a /logic/Env.cpp
parent7670d72bd9c8bb2adcecd2d04413a2abb9ac174f (diff)
downloadMultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.tar
MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.tar.gz
MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.tar.lz
MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.tar.xz
MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.zip
GH-1308 remove use of static data (translations) and root (notifications.json) paths.
Diffstat (limited to 'logic/Env.cpp')
-rw-r--r--logic/Env.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/Env.cpp b/logic/Env.cpp
index 2f26f211..4214695d 100644
--- a/logic/Env.cpp
+++ b/logic/Env.cpp
@@ -134,7 +134,7 @@ void Env::registerVersionList(QString name, std::shared_ptr< BaseVersionList > v
}
-void Env::initHttpMetaCache(QString rootPath, QString staticDataPath)
+void Env::initHttpMetaCache()
{
m_metacache.reset(new HttpMetaCache("metacache"));
m_metacache->addBase("asset_indexes", QDir("assets/indexes").absolutePath());
@@ -146,8 +146,8 @@ void Env::initHttpMetaCache(QString rootPath, QString staticDataPath)
m_metacache->addBase("liteloader", QDir("mods/liteloader").absolutePath());
m_metacache->addBase("general", QDir("cache").absolutePath());
m_metacache->addBase("skins", QDir("accounts/skins").absolutePath());
- m_metacache->addBase("root", QDir(rootPath).absolutePath());
- m_metacache->addBase("translations", QDir(staticDataPath + "/translations").absolutePath());
+ m_metacache->addBase("root", QDir::currentPath());
+ m_metacache->addBase("translations", QDir("translations").absolutePath());
m_metacache->addBase("icons", QDir("cache/icons").absolutePath());
m_metacache->Load();
}