9c57b54a81
refactor: move things around so that related things are close together
...
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-07 19:32:28 -03:00
f714adf6d2
refactor: move NetJob away from ModModel to ModAPI
...
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-07 16:22:57 -03:00
d755174bee
clarify some method names and comments
2022-03-06 16:04:24 -03:00
5a638fa977
refactor: move "get versions" task from page to model
...
This seems more reasonable
2022-03-06 15:23:00 -03:00
5e9d49a910
refactor: use only a single unique_ptr for the api
2022-03-06 13:54:55 -03:00
0dd1c26cf3
refactor: extract common code in mod pages and model
...
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-02 21:52:44 -03:00
881b2f2b38
refactor: Use a single indexed pack for mods
...
Since there's little difference between them, let's remove duplication
and merge them.
2022-03-02 18:49:19 -03:00
2745325ae0
Fixed wrong version info
2022-02-27 11:55:24 +01:00
c4f4e9e620
merge upstream and resolve conflicts
2022-02-25 13:43:27 -03:00
1004211a66
fix(ui): change text in selection button when there's no valid version
2022-02-21 22:52:50 -03:00
512395e3f1
feat(ui): allow downloading multiple mods in Modrinth at once
2022-02-21 21:34:53 -03:00
adacab3349
Fixed segfault when closing window while version info download is still going
2022-02-19 15:17:45 +01:00
86935068f5
Fix wrong mod file name
2022-02-04 16:24:19 +01:00
aa2c27bf69
Update to Modrinth API V2
2022-01-31 17:18:11 +01:00
1d0e6bf453
Changed modrinth author data to not be a list
2022-01-24 07:23:01 +01:00
affc2521aa
Various fixes
2022-01-18 12:28:55 +01:00
621e0ba4a8
Added smart file selection
...
This might fail in a few special cases
2022-01-15 10:25:24 +01:00
f6de472da2
Added a no version message
2022-01-15 09:06:48 +01:00
4b37c46889
Filtering per mod loader & mc version
2022-01-15 08:51:47 +01:00
1a8c972aef
Fixed icons
...
Also having a mod loader is now enforced
2022-01-14 20:22:15 +01:00
9e6fa8f29a
Added the downloading of the mods
2022-01-14 12:47:18 +01:00
4e9039be2d
Start of mod downloading
2022-01-14 09:56:27 +01:00