aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceImportTask.cpp
AgeCommit message (Collapse)Author
2023-05-21fix: memory leak with NetJob and responce not getting cleaned upRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-01feat: add `details` signal to `Task`Rachel Powers
feat: add details to mod pack downloading feat: add logging rule sloading form `ligging.ini at data path root feat: add `launcher.task` `launcher.task.net` and `launcher.task.net.[down|up]load` logging categories fix: add new subtask progress to the end of the lay out not the beginning (cuts down on flickering) Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-01feat: Propogated subtask progressRachel Powers
Oh boy this is big. > TaskStepProgress struct is now QMetaObject compatabile and can be sent through signals > Task now has a method to propogates sub task progress it must be signal bound by each task containing a task wishing to report progress of it's children. > Downloads report speed > Tasks now have UUIDS to track them - use when reporting - use when logging - use when storeing them or objects related to them Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-24fix: prevent crash when aborting import task while extracting packflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-02-07Replace potentially ReDOSable regexPandaNinjas
Signed-off-by: PandaNinjas <admin@malwarefight.gq>
2023-01-25refactor: make shared_qobject_ptr ctor explicitflow
This turns issues like creating two shared ptrs from a single raw ptr from popping up at runtime, instead making them a compile error. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-13fix(Inst.Import): don't assert extra data when importing from ZIPflow
ZIPs don't have the necessary data in those cases. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPackPage): only update the current instance exactlyflow
Also carry on the original ID to avoid updating the wrong instance. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06refactor(InstanceImport): require rvalue from 'extra_info' mappingsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat+fix: allow forwarding extra info to InstanceImportTaskflow
This allows us to pass to the creation instances their actual pack ID and version ID, that in Flame's case, are only available before starting to create an instance. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat: add functionality to MR modpack update in the page :Dflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-01fix(Inst.Import): don't search inside 'overrides/' for the manifestflow
It will never be there anyways, and saves a **bunch** of time when the overrides folder is big and we traverse all the tree when searching for the MMC 'instance.cfg' file. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20refactor: setAbortStatus -> setAbortableflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20feat(ui): improve info dialog before updating an instanceflow
Adds a 'Cancel' option, and add a note about doing a backup before updating. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20fix: hook up setAbortStatus in instance import tasksflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20fix: simplify abort handling and add missing emitsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20refactor: change the way instance names are handledflow
While working on pack updating, instance naming always gets in the way, since we need both way of respecting the user's name choice, and a standarized way of getting the original pack name / version. This tries to circunvent such problems by abstracting away the naming schema into it's own struct, holding both the original name / version, and the user-defined name, so that everyone can be happy and world peace can be achieved! (at least that's what i'd hope :c). Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20refactor: clean up InstanceImportTask a bitflow
Also removes a divide by two in the download progress (why was it there???) Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20refactor: move flame modpack import to separate fileflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20feat: add early modrinth pack updatingflow
Still some FIXMEs and TODOs to consider, but the general thing is here! Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20refactor: move modrinth modpack import to separate fileflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-16Add "Open All" button to blocked mods dialogkumquat-ir
Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
2022-07-10refactor: replace QRegExp with QRegularExpressionSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10Merge pull request #880 from Scrumplex/fix-loader-importancetxtsd
Make loader components not important
2022-07-07fix: make loader components not importantSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-03fix: add progress indicator on Flame mod resolution dialogflow
This code is super :pofat: omg Signed-off-by: flow <flowlnlnln@gmail.com>
2022-06-11fix: account for the dequeued url when checking the number of urlsflow
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-06-11fix: dequeue first added file in mrpack importflow
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-06-11fix: apply client overrides in mrpacksflow
another oopsie x.x
2022-06-09revert: don't check modrinth whitelisted hostsflow
people didn't seem to like it, and its not required
2022-06-09fix: enable using more than one download url in mrpacksflow
Kinda, it's ugly and hackish, since we don't have the facilities to do this properly (yet!)
2022-06-09fix: properly parse mrpacks without the 'env' fieldflow
It's optional, so some files may not have it (like most of FO).
2022-05-29Merge pull request #671 from Scrumplex/fix-importing-flame-mmc-packsSefa Eyeoglu
2022-05-29fix: fix importing Flame/MMC packsSefa Eyeoglu
2022-05-28feat: add warning of non-whitelisted URLs instead of a hard failflow
Based on people's votes on Discord :^)
2022-05-28debug: add non-translated debug logging for 'non-whitelisted url' failsflow
2022-05-28change: update whitelisted hosts in Modrinth modpacksflow
2022-05-28Rework curseforge download (#611)timoreo22
* Use the bulk endpoint on mod resolution for faster download * Search on modrinth for api blocked mods * Display a dialog for manually downloading blocked mods
2022-05-28Merge pull request #657 from JJL772/fix/misc-fixestimoreo22
Fix crash when aborting instance import
2022-05-27Fix crash when aborting instance importJeremy Lorelli
Also turned a loop var into a reference to avoid copies on each iteration
2022-05-26fix: prefer stricter modpack formats during importSefa Eyeoglu
Flame modpacks use "manifest.json" as their only characteristic for identification. Some modpacks might have other files called "manifest.json", which is why we should prefer modpack formats that have a stricter structure.
2022-05-17fix conflicts with developflow
2022-05-16fix: typo and useless codeflow
2022-05-15feat: better handling of optional modsflow
This disables the optional mods by default and tell the user about it. Pretty hackish, but a better solution would involve the modrinth metadata to have the mod names... Also sorry for the diffs, my clangd went rogue x.x
2022-05-15fix: validate whitelisted download urlsflow
2022-05-15change: use modrinth icon as default on modrinth packsflow
2022-05-15chore: license headers 2flow
2022-05-15chore: add/update license headersSefa Eyeoglu
2022-05-15feat: add support for Quilt Loader in Modrinth packsSefa Eyeoglu
2022-05-14refactor: some random improvementsflow