aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft
AgeCommit message (Collapse)Author
2022-08-31Merge pull request #1067 from Scrumplex/classpath-epicnessflow
Move classpath definition into NewLaunch itself
2022-08-31Merge pull request #1080 from flowln/eternal_cacheflow
Never invalidate libraries cache entries by time elapsed
2022-08-21fix: make FML libraries cache eternalflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-21fix: make libraries cache eternalflow
This restores the behavior prior to PR #920. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20fix: LGTM warningsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20change: add enable/disable to resourcesflow
TIL that zip resource packs, when disabled, actually have the effect of not showing up in the game at all. Since this can be useful to someone, I moved the logic for it to the resources. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor+fix: add new tests for Resource models and fix issuesflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: simplify Mod structureflow
No need to keep track of pointers left and right. A single one already gives enough headaches! Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20fix(tests): add timeout on ModFolderModel's testsflow
If the update never ends, the signal is not emitted and we become stuck in the event loop forever. So a very lenient timer is added to prevent that. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20fix: don't give shared pointer to obj. external to the modelflow
It causes some weird problems and adds refcounting overhead. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: adapt rest of the codebase to the new resource modelflow
In order to access the ModFolderModel from the ModFolderPage, i created a new m_model for the correct type, shadowing the m_model of type ResourceFolderModel. This creates two shared_ptr references to the same object, but since they will have the same lifetime, it doesn't generate a memory leak. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: make Resource Pack model inherit from ResourceFolderModelflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: move more tied logic to model and move logic to the resourcesflow
This moves the QSortFilterProxyModel to the resource model files, acessible via a factory method, and moves the sorting and filtering to the objects themselves, decoupling the code a bit. This also adds a basic implementation of methods in the ResourceFolderModel, simplifying the process of constructing a new model from it. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: move things around in the mod modelflow
Makes the method order in the cpp file the same as in the header file. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: move general code from mod model to its own modelflow
This aims to continue decoupling other types of resources (e.g. resource packs, shader packs, etc) from mods, so that we don't have to continuously watch our backs for changes to one of them affecting the others. To do so, this creates a more general list model for resources, based on the mods one, that allows you to extend it with functionality for other resources. I had to do some template and preprocessor stuff to get around the QObject limitation of not allowing templated classes, so that's sadge :c On the other hand, I tried cleaning up most general-purpose code in the mod model, and added some documentation, because it looks nice :D Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: move general info from Mod to Resourceflow
This allows us to create other resources that are not Mods, but can still share a significant portion of code. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20Merge pull request #878 from flowln/lazy_settingsSefa Eyeoglu
2022-08-20Merge pull request #1023 from flowln/better_shared_ptrSefa Eyeoglu
2022-08-18refactor: move classpath definition into NewLaunch itselfSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-08-11fix: only remove orphaned metadata on first openingflow
This avoids deleting the metadata while one is updating their mods. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-04refactor+fix: use QSharedPointer for shared_qobject_ptrflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-02fix: remove orphaned metadata to avoid problems with auto-updating instsflow
Just as my master has taught me. :gun: Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-30Merge pull request #941 from Scrumplex/bump-cxx-standardLennyMcLennington
Bump to C++17
2022-07-26chore: add some debugging prints in AccountListflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-23Merge pull request #877 from Scrumplex/refactor-offline-accountsSefa Eyeoglu
2022-07-23fix: treat accounts as offline, if auth servers are downSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-22change: unicode chars for folders and disabled mods in mod listflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-22fix: use single-space unicode char for checkmark in mod listflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-20refactor!: bump to C++17 and C17Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-17fix: raw-pointers and leaks in ModFolderLoadTaskflow
Co-authored-by: timoreo <contact@timoreo.fr> Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17fix: std::list -> QListflow
Qt6 removed Qlist::toStdList() :sob: Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17change: use ModStatus as a simple member instead of a pointerflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17change: make Mod a QObject used as a pointerflow
Prevents problems when copying it around! Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17change: mod metadata improvementsflow
- Use slug instead of name - Keep temporary status before having local details Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17fix: mod parsing of 'String-fied' version (i.e. OpenBlocks)flow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17feat: add metadata get/delete via mod idflow
This is, in many cases, more reliable than name comparisons, so it's useful specially in cases where a mod changes name between versions Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17feat: remove existing mod when updating/redownloading itflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17feat: add update mods to the ui / mod modelflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17change: allow deleting mods while preserving their metadataflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-12fix: move time record overrides to BaseInstanceflow
This is needed so that we can show time stats in the UI without having to load all type-specific settings, which would make all the previous changes useless :c This is apparently done with console settings too, so I don't think there's a problem doing this too :> Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-10chore: update license headersSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10fix: fix slots for Qt 6Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10refactor: fix deprecation up to Qt 6Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10refactor: replace QRegExp with QRegularExpressionSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10refactor: fix deprecation up to Qt 5.15Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10Merge pull request #876 from Scrumplex/revert-updater-stuffdada513
Revert "fix: remove updater if it is not used"
2022-07-09Merge pull request #808 from Scrumplex/fix-lgtm-warningsSefa Eyeoglu
2022-07-08Merge pull request #839 from flowln/modrinth_packs_bug_huntSefa Eyeoglu
2022-07-06feat: lazy-load MinecraftInstance settingsflow
Makes the startup go fast! vrum Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-06change: put settings initialization in a separate functionflow
Signed-off-by: flow <flowlnlnln@gmail.com>