aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
AgeCommit message (Collapse)Author
2022-08-28refactor: make NetJob inherit from ConcurrentTask as well!flow
Avoids lots of code duplication Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-03fix: aborts when using a Qt build with assertions enabledflow
Preventing undefined behaviour hooray! :D Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-03feat+fix: cache versions and extra info in Modrinth packsflow
When you change a copy thinking you're changing the original data smh Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-03Merge pull request #818 from flowln/tiny_mod_iconsEzekiel Smith
Always scale mod icons to the right size
2022-06-24fix(modrinth): fix sortingDioEgizio
2022-06-21fix: scale mod icons to the right sizeflow
2022-06-12chore: add license headersSefa Eyeoglu
2022-05-16fix: mod skipping between pages and remove dead codeflow
2022-05-16fix: missed change to metacache entry lookupflow
2022-05-16fix: use own metacache base for modrinth iconsSefa Eyeoglu
2022-05-16fix: better hack for icons that cant be natively scaled to 48x48flow
2022-05-15change: switch to modrinth production serversflow
2022-05-15fix: macos compilationflow
i forgor macos is cringe with static arrays :skull: edit: WHY DONT MAC LET ME USE STD::ARRAY ;----;
2022-05-15fix: pack sorting and other search parametersflow
2022-05-15chore: license headers 2flow
2022-05-15chore: add/update license headersSefa Eyeoglu
2022-05-15change: use build variables for the modrinth API URLsflow
Make it more consistent with the others
2022-05-14fix: make all modrinth modpacks have the same icon sizeflow
2022-05-14feat: add modrinth pack downloadingflow
Things that don't work / work poorly (there's more for sure but those are the evident ones): - Icons are broken in the import dialog - No way to search for private packs - Icons are not downloaded when downloading a mod - No support for multiple download URLs - Probably a lot more...
2022-05-14refactor: rename Modrinth classes to ModrinthModSefa Eyeoglu
2022-03-27chore: add license headerSefa Eyeoglu
chore: add license header
2022-03-14tidy: Fix clang-tidy issues on files changed in this PRflow
The checks used are roughly the same as the ones proposed in the clang-tidy PR (except perhaps that I used modernize-* instead of listing them individually,though I don't think this caused any readability detriments). In ModrinthModel.cpp and FlameModModel.cpp I ignored the modernize-avoid-c-arrays one, mostly because making the sorts array an std::array would most likely increase the code complexity because of the virtual function. Aside from that, the static_cast warning from Application.h was not dealt with, since it's not in this PR's scope.
2022-03-07fix: delete semicolons at the end of .cpp file's functionsflow
my lsp is weird sometimes
2022-03-07refactor: move things around so that related things are close togetherflow
This also adds some comments around ModModel.cpp and ModPage.cpp to add some ease of reading the code. Also move some things from headers to cpp files.
2022-03-07refactor: move more common code to base classflow
Also removes unused imports and organize the ModModel header
2022-03-07refactor: move NetJob away from ModModel to ModAPIflow
This is done so that 1. ModAPI behaves more like an actual API instead of just a helper, and 2. Allows for more easily creating other mod providers that may or may not use network tasks (foreshadowing lol)
2022-03-02refactor: move url creation for mods to modplatform/flow
Moves all things related to creating the URLs of the mod platforms that go to network tasks to a single place, so that: 1. Maintaining and fixing eventual issues is more straightforward. 2. Makes it possible to factor out more common code between the different modplatform pages
2022-03-02refactor: extract common code in mod pages and modelflow
This creates a hierarchy in which ModPage and ModModel are the parents of every mod provider, providing the basic functionality common to all of them. It also imposes a unique .ui file (they were already equal before, just duplicated basically) on all mod providers.
2022-03-02refactor: Use a single indexed pack for modsflow
Since there's little difference between them, let's remove duplication and merge them.
2022-02-04Fix wrong mod file nametimoreo
2022-01-31Update to Modrinth API V2timoreo
2022-01-19Reduce spaghettinesstimoreo
2022-01-18Various fixestimoreo
2022-01-15Filtering per mod loader & mc versiontimoreo
2022-01-14Fixed iconstimoreo
Also having a mod loader is now enforced
2022-01-14Start of mod downloadingtimoreo