Commit graph

511 commits

Author SHA1 Message Date
TheKodeToad
316121ba8f
Use an owning QByteArray in ByteArraySink
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-02-18 00:31:05 +00:00
TheKodeToad
71278ff7ea
Add opt-in for showing mod incompatibilities
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-02-12 22:37:15 +00:00
TheKodeToad
b664846030
Allow multiple compat issues to be displayed, make game version incompat clearer
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-02-12 22:36:59 +00:00
TheKodeToad
9cb33b519f
Render incompatibility highlight and warning
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-02-12 18:56:57 +00:00
TheKodeToad
081d2f1e51
Reduce duplication in ResourceFolderModel subclasses
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-02-12 18:56:56 +00:00
TheKodeToad
e2d503456f
Detect resources incompatible with the MC version
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-02-12 18:56:38 +00:00
Trial97
f943331e39
fix codeql
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-31 21:46:36 +02:00
Alexandru Ionut Tripon
ef1e35d585
Track dependencies in Mods page (#3738) 2026-01-31 20:28:01 +02:00
Octol1ttle
584dc47da5
chore: remove double spaces from logs
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2026-01-29 19:15:27 +05:00
Alexandru Ionut Tripon
2554c37964
Add asserts to invalid Task states (#4835) 2026-01-22 22:40:43 +02:00
Octol1ttle
6cb07e203b
fix(ResourceFolderModel): don't read state from off-thread task
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2026-01-22 22:10:13 +05:00
Octol1ttle
507de0fcbd
fix: add missing returns after emitFailed/Aborted
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2026-01-21 18:30:31 +05:00
Seth Flynn
fd91f87c21
style: re-format tree with editorconfig
```
find $PWD \
  -type f \
  ! -path '*/.git/*' ! -path '*/flatpak/shared-modules/*' \
  ! -path '*/libraries/*' ! -path '*/testdata/*' ! -name '*.patch' \
  ! -name '*.svg' ! -name '*.scd' ! -path '*/program_info/LICENSE' \
  ! -path '*/COPYING.md' ! -path '*/cmake/*' ! -name '.gitmodules' \
  -exec eclint -fix {} \;
```

Signed-off-by: Seth Flynn <getchoo@tuta.io>
2026-01-18 15:48:07 -05:00
Trial97
3b3e246501
only emit changes when the count changes
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:22 +02:00
Trial97
85071e8919
only emit changes on the modified collumns
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:22 +02:00
Alexandru Ionut Tripon
f3495bc4c0
Apply suggestions from code review
Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
2026-01-17 17:26:22 +02:00
Trial97
67a724f990
improve toggle message
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:22 +02:00
Trial97
35750ebada
update toggle message box
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:22 +02:00
Trial97
1735814d42
add confirmation dialog
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:22 +02:00
Alexandru Ionut Tripon
8c824ed3d6
Update launcher/minecraft/mod/ModFolderModel.cpp
Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:22 +02:00
Trial97
c9426da64d
Update launcher/minecraft/mod/ModFolderModel.cpp
Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
Trial97
1a82a83e36
rework parse dependency function
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
Trial97
36e540ed11
fix toggle action
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
Trial97
ba4d9cadc4
change to QSet to remove duplicates
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
Trial97
947656df0f
feat: display mod dependencies
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
Trial97
66f0f95fd7
feat: make dependencies auto disable/enable
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
Trial97
22539a4ff8
feat: add requireBy and requires columns
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
Trial97
bacce134c0
feat: store provider dependencies
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
Trial97
8cf41be77f
feat: decode dependencies from mod jar
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-17 17:26:21 +02:00
TheKodeToad
6848d60cad
refactor!!!: migrate from shared pointers (#4673) 2026-01-16 20:32:17 +00:00
SwitchAxe
809e766aec Fixed formatting
Signed-off-by: SwitchAxe <sofiacerasuoli@gmail.com>
2026-01-12 16:44:01 +01:00
SwitchAxe
7f0f90fcce Improved the check for the assets dir
Signed-off-by: SwitchAxe <sofiacerasuoli@gmail.com>
2026-01-12 14:43:54 +01:00
SwitchAxe
8aba994312 Made the loop more efficient
Signed-off-by: SwitchAxe <sofiacerasuoli@gmail.com>
2026-01-12 03:36:52 +01:00
Sofia
6321db5942
Update launcher/minecraft/mod/tasks/LocalShaderPackParseTask.cpp
Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com>
Signed-off-by: Sofia <75943257+SwitchAxe@users.noreply.github.com>
2026-01-12 03:25:43 +01:00
SwitchAxe
6ac9de7a11 Fixed Indentation
Signed-off-by: SwitchAxe <sofiacerasuoli@gmail.com>
2026-01-12 02:35:36 +01:00
SwitchAxe
9a93696915 Added support for shader packs with a top-level parent directory
Signed-off-by: SwitchAxe <sofiacerasuoli@gmail.com>
2026-01-12 02:13:56 +01:00
Octol1ttle
549405ab2f
refactor!!!: migrate from shared pointers
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2026-01-11 21:00:03 +05:00
Alexandru Ionut Tripon
2b04da0c36
Fix shaderpacks folder being hidden (#4707) 2026-01-11 15:19:00 +02:00
Trial97
53acc60983
format the code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-09 22:28:25 +02:00
TheKodeToad
3e7ef5ee17
Fix shaderpacks folder being hidden on Windows
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-01-09 13:54:14 +00:00
TheKodeToad
3a7366a998
Fix oversights and make requested changes
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-01-06 20:16:46 +00:00
TheKodeToad
e4991d81d7
Avoid some errors (less noisy log)
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-01-06 17:55:44 +00:00
TheKodeToad
398305eb66
Less destructive delete
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-01-06 17:54:16 +00:00
TheKodeToad
1cf48dfd85
Don't use .index for shaderpacks
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2026-01-06 15:05:23 +00:00
Octol1ttle
56392a20ed
refactor: remove broken Qt includes
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2026-01-06 15:51:47 +05:00
Trial97
08c45684de
match disabled mods on uninstall
fixes #4537
This ensures that when looking to uninstall a resource prism will
consider the disabled ones to.
Right now we have a guard in place to prevent resources using the same
name so this check will allways match with the correct resouce.

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-20 23:54:31 +02:00
Dylan Schooner
51b47050f9 Check specifically for GarbageAtEnd error
- Out parameter for garbage data\n- Rename parseUntilMalformed to parseUntilGarbage

Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
2025-12-18 15:23:48 -05:00
Dylan Schooner
9c7fe72f9c Use Json::parseUntilMalformed in McClient::parseResponse
Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
2025-12-18 14:14:29 -05:00
Dylan Schooner
e1eee6e3ca Add Json::parseUntilMalformed helper
Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
2025-12-18 13:33:13 -05:00
Dylan Schooner
43fce3ae46 Trim unexpected info from pack.mcmeta
Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
2025-12-18 12:34:41 -05:00