aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/helpers
AgeCommit message (Collapse)Author
2023-08-23Updated dependency resolutionTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-08-14chore: reformatSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-08-10Merge remote-tracking branch 'upstream/staging' into chore/add-compiler-warningsSefa Eyeoglu
2023-07-31Merge branch 'develop' into refactor/net-split-headers-to-proxy-classRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-07-30Merge branch 'develop' into chore/add-compiler-warningsRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-07-14renamesTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-07-14Made custom template enabled all timeTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-07-14escaped text for html exportTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-07-14Moved to separate functionsTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-07-14Added json and csv formatTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-07-14fix: html sintax for modlist exportTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-07-01chore: fix shadowed member and signed/unsigned mismatchRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: supress unused with [[maybe_unused]] Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: unshadow ^&^& static_cast implicit return Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: deshadow and mark unused in parse task Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: mark unused in folder models Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: deshadow and mark unused with instances Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: more deshadow and unused Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: remove uneeded simicolons Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: mark unused Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: prevent shadow Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-06-25Merge remote-tracking branch 'upstream/develop' into ↵Rachel Powers
refactor/net-split-headers-to-proxy-class
2023-06-25refactor: split out setting api headers for downloadsRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-06-25Added plantxt exportTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-25Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher ↵Trial97
into export
2023-06-24Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher ↵Trial97
into develop
2023-06-23Fixed hashersTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-23Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher ↵Trial97
into develop Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-23Renamed getResults to resultsReadyTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-22Updated slug for urlTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-22Use slug for urlTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-22Added ExportModsToStringTaskTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-18Removed extra headersTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-18Fixed leaksTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-15Made ByteSynkArray to use shared_ptrTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-05-28Merge branch 'Fix_Assert' of github.com:Trial97/PrismLauncher into developTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-05-26fix(memory leak): don't capture job and create cyclic refrenceRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-04-21Fixed tipoTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-04-21Added Dependency APITrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-03-12fix: explicit conversion to C string to fix MinGW g++ 10 buildKenneth Chew
Signed-off-by: Kenneth Chew <kenneth.c0@protonmail.com>
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>
2023-01-23fix(license): add/fix my copyright/license headersflow
*sobbing in messy legal stuff i know nothing about* Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor: change some ResourceAPI from NetJob to Taskflow
This makes it easier to create resource apis that aren't network-based. Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor(RD): decouple ResourceModels from ResourcePagesflow
This makes it so that we don't need a reference to the parent page in the model. It will be useful once we change the page from a widget-based one to a QML page. It also makes tasks be created in the dialog instead of the page, so that the dialog can also have the necessary information to mark versions as selected / deselected easily. It also makes the task pointers into smart pointers. Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor: generalize mod models and APIs to resourcesflow
Firstly, this abstract away behavior in the mod download models that can also be applied to other types of resources into a superclass, allowing other resource types to be implemented without so much code duplication. For that, this also generalizes the APIs used (currently, ModrinthAPI and FlameAPI) to be able to make requests to other types of resources. It also does a general cleanup of both of those. In particular, this makes use of std::optional instead of invalid values for errors and, well, optional values :p This is a squash of some commits that were becoming too interlaced together to be cleanly separated. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-11Merge pull request #304 from Ryex/move-downloadsflow
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/222
2022-11-07fix: use cross-platform toStdString in FlameHasherflow
Almost the same issue from toml++ :p Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-01watch filesystem, compute and match hashesRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-10-24fix: retry mod search job after aborting itflow
This way, we don't get stuck with an aborted job in our way! :o Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-26huge nit: added const refs, everywheretimoreo
Signed-off-by: timoreo <contact@timoreo.fr>
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-07Merge pull request #939 from flowln/mod_downloader_improveflow
Some more UI / UX improvements to the mod downloader!
2022-08-01refactor: use function cb instead of class cb in getVersionsflow
I've discovered even more functional programming! :^) Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01refactor: use function cb instead of class cb in getModInfoflow
I've discovered functional programming :^) This makes this route more fit for general use. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-24refactor: add a HashUtils place for hashing stuffflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17fix: don't use shared_ptr for a background task T_Tflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17feat: add some mod api callsflow
- Get Project: Already existed but required a specific caller type. This is more general. - Get Projects: A single call to multiple of the above Both providers support these calls. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-05-24feat: add donate links for modrinth modsflow
2022-03-24optimize: Improve mod versions request to Modrinthflow
This uses more arguments in the GET request for mod versions on the Modrinth API, filtering what versions can be returned, decreasing load on Modrinth servers and improving a little the time it takes for the versions to be available to the user. This also removes the now unneeded check on correct modloaders in ModrinthPackIndex, since it is now filtered by the Modrinth server. Lastly, this adds a couple of helper functions in ModModel.