aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-23fix: set icon sizes correctly in ProjectItemDelegateflow
no more dumb hacks with icons!! Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-21feat: also format resource/texture pack namesSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-21feat: support more formatting codesSefa Eyeoglu
also fix some crashes Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20fix: don't change groups when updating an instanceflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20feat: add dialog to ask whether to chaneg instance's nameflow
This prevents custom names from being lost when updating, by only changing the name if the old instance name constains the old version, so that we can update it if the user whishes to. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20fix: show warning in case there's no old index when updatingflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20refactor: setAbortStatus -> setAbortableflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20fix: don't load specific settings for managed pack infoflow
This avoids loading all settings for all instances when searching for one with a specific managed pack name. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20fix: move file deletion to the end of the instance updateflow
This makes it harder for problems in the updating process to affect the current instance. Network issues, for instance, will no longer put the instance in an invalid state. Still, a possible improvement to this would be passing that logic to InstanceStaging instead, to be handled with the instance commiting directly. However, as it is now, the code would become very spaguetti-y, and given that the override operation in the commiting could also put the instance into an invalid state, it seems to me that, in order to fully error-proof this, we would need to do a copy operation on the whole instance, in order to modify the copy, and only in the end override everything an once with a rename. That also has the possibility of corrupting the instance if done without super care, however, so I think we may need to instead create an automatic backup system, with an undo command of sorts, or something like that. This doesn't seem very trivial though, so it'll probably need to wait until another PR. In the meantime, the user is advised to always backup their instances before doing this kind of action, as always. What a long commit message o.O Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20fix: some abort-related issuesflow
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(ui): hook up abort status signal in ProgressDialogflow
Now we have a visual indication on when tasks are abortable! 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-20feat: add canAbort() status change in Taskflow
By now, it's a recurring pattern of wanting to restrict aborting in certain situations. This avoids further code duplication, and adds a signal that external users can hook up to to respond to such change. 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-20fix: correctly set managed pack fields in CF packflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20feat: add override awareness to CF modpack updatingflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20fix: correctly set all managed pack fields in Modrinth packflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20feat: add override handling in modrinth pack updateflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20feat: add override helper functionsflow
These help us keep track of relevant metadata information about overrides, so that we know what they are when we update a pack. 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-20feat: add curseforge modpack updatingflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20refactor: move creation of CF file download task to a separate functionflow
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-20refactor: add `throw_on_blocked` arg to Flame file parseflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20feat: add 'getFiles' by fileIds route in Flame APIflow
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-09-20refactor: add instance creation abstraction and move vanillaflow
This is so that 1. Code is more cleanly separated, and 2. Allows to more easily add instance updating :) Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20chore: add helper function for copying managed pack data between insts.flow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20fix: add more legacy architecturesSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20refactor: drop 64-bit checkSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20feat: support multiarch system classifiersSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20refactor: introduce RuntimeContextSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20fix: register JavaRealArchitecture for MinecraftInstanceSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20Merge pull request #1108 from Scrumplex/better_texture_packsSefa Eyeoglu
2022-09-20fix: ensure all resource folders existSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20fix: actually render color codes for texture packsSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20fix: comments and naming of texture pack stuffSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20fix: testsSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20feat: add texture pack parsingSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20Merge pull request #1150 from flowln/fix_crash_on_game_quittxtsd
2022-09-20Merge pull request #1142 from flowln/better_fstxtsd
2022-09-18Merge pull request #903 from jopejoe1/demo-launchSefa Eyeoglu
2022-09-16fix: prevent container detaching in ResourceFolderModelflow
and use const accessors whenever we can! Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-16fix: prevent deletes by shared pointer accidental creationflow
This fixes the launcher crashing when opening the game :iea: Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-16fix: move newly allocated resources to the main threadflow
This avoids them getting deleted when the worker thread exits, due to thread affinity on the created thread. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-16fix: memory leak when getting mods from the mods folderflow
friendly reminder to always delete your news. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-15fix: enable demo launch only on supported instancesflow
e.g. >= 1.3.1 instances Signed-off-by: flow <flowlnlnln@gmail.com>