diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-06-27 03:20:11 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-27 03:20:11 +0200 |
commit | fde43c993e0a143b9dddcaff2190c91f4e5e3cb9 (patch) | |
tree | f1a97f55cc655e68c11660290eb9e0460a0ae96f /application/pages/modplatform/ImportPage.cpp | |
parent | 917f148fc41db7d68ef94c8ea29cd417a8f1ff33 (diff) | |
download | MultiMC-fde43c993e0a143b9dddcaff2190c91f4e5e3cb9.tar MultiMC-fde43c993e0a143b9dddcaff2190c91f4e5e3cb9.tar.gz MultiMC-fde43c993e0a143b9dddcaff2190c91f4e5e3cb9.tar.lz MultiMC-fde43c993e0a143b9dddcaff2190c91f4e5e3cb9.tar.xz MultiMC-fde43c993e0a143b9dddcaff2190c91f4e5e3cb9.zip |
NOISSUE add silly twitch URL and CCIP resolving page to 'add instance'
It needs a few more steps and it will handle all kinds of twitch packs.
Diffstat (limited to 'application/pages/modplatform/ImportPage.cpp')
-rw-r--r-- | application/pages/modplatform/ImportPage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/pages/modplatform/ImportPage.cpp b/application/pages/modplatform/ImportPage.cpp index 3cd7c2cf..3910dfda 100644 --- a/application/pages/modplatform/ImportPage.cpp +++ b/application/pages/modplatform/ImportPage.cpp @@ -75,6 +75,11 @@ void ImportPage::updateState() } else { + if(input.endsWith("?client=y")) { + input.chop(9); + input.append("/file"); + url = QUrl::fromUserInput(input); + } // hook, line and sinker. QFileInfo fi(url.fileName()); dialog->setSuggestedPack(fi.completeBaseName(), new InstanceImportTask(url)); |