summaryrefslogtreecommitdiffstats
path: root/logic/liteloader/LiteLoaderInstaller.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-07-06 11:15:15 +0200
committerPetr Mrázek <peterix@gmail.com>2014-07-06 11:15:15 +0200
commitcc499488dbab9167870e6088f9a1793f95894c79 (patch)
treed6efb25086f4c2c6cb3c0a3dc8ad5a5a80985286 /logic/liteloader/LiteLoaderInstaller.cpp
parenta218d7b7f6a9e30671be72b756104302637eb33d (diff)
downloadMultiMC-cc499488dbab9167870e6088f9a1793f95894c79.tar
MultiMC-cc499488dbab9167870e6088f9a1793f95894c79.tar.gz
MultiMC-cc499488dbab9167870e6088f9a1793f95894c79.tar.lz
MultiMC-cc499488dbab9167870e6088f9a1793f95894c79.tar.xz
MultiMC-cc499488dbab9167870e6088f9a1793f95894c79.zip
Fix liteloader, some cleanups.
Diffstat (limited to 'logic/liteloader/LiteLoaderInstaller.cpp')
-rw-r--r--logic/liteloader/LiteLoaderInstaller.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/logic/liteloader/LiteLoaderInstaller.cpp b/logic/liteloader/LiteLoaderInstaller.cpp
index ea1a4396..863c7fcb 100644
--- a/logic/liteloader/LiteLoaderInstaller.cpp
+++ b/logic/liteloader/LiteLoaderInstaller.cpp
@@ -49,13 +49,12 @@ bool LiteLoaderInstaller::add(OneSixInstance *to)
QJsonArray libraries;
- for (auto libStr : m_version->libraries)
+ for (auto rawLibrary : m_version->libraries)
{
- OneSixLibrary lib(libStr);
+ rawLibrary->insertType = RawLibrary::Prepend;
+ OneSixLibrary lib(rawLibrary);
lib.finalize();
- QJsonObject libObj = lib.toJson();
- libObj.insert("insert", QString("prepend"));
- libraries.append(libObj);
+ libraries.append(lib.toJson());
}
// liteloader