diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-30 02:34:46 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-30 02:34:46 +0200 |
commit | 8b0f8b9e597eb50ff9323037fd5fa1b9e330c467 (patch) | |
tree | 3b6613d6c7672803c371ef7043cf35b713b975b1 /logic/OneSixLibrary.cpp | |
parent | 604162acdf5283a9759c1b3ce9e90887a6599ce7 (diff) | |
download | MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.tar MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.tar.gz MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.tar.lz MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.tar.xz MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.zip |
``Working'' forge unpackers. Needs a lot of hardening but good for alpha.
Diffstat (limited to 'logic/OneSixLibrary.cpp')
-rw-r--r-- | logic/OneSixLibrary.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/logic/OneSixLibrary.cpp b/logic/OneSixLibrary.cpp index 8da1fde7..63d42646 100644 --- a/logic/OneSixLibrary.cpp +++ b/logic/OneSixLibrary.cpp @@ -105,12 +105,24 @@ QString OneSixLibrary::absoluteUrl() return m_absolute_url; } +void OneSixLibrary::setHint(QString hint) +{ + m_hint = hint; +} + +QString OneSixLibrary::hint() +{ + return m_hint; +} + QJsonObject OneSixLibrary::toJson() { QJsonObject libRoot; libRoot.insert("name", m_name); if(m_absolute_url.size()) - libRoot.insert("MMC-absulute_url", m_absolute_url); + libRoot.insert("MMC-absoluteUrl", m_absolute_url); + if(m_hint.size()) + libRoot.insert("MMC-hint", m_hint); if(m_base_url != "https://s3.amazonaws.com/Minecraft.Download/libraries/") libRoot.insert("url", m_base_url); if (isNative() && m_native_suffixes.size()) |