Commit Graph

880 Commits

Author SHA1 Message Date
Trial97
53acc60983 format the code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-09 22:28:25 +02:00
Trial97
b1408775b3 fix Pre-release filter
introduced here https://github.com/PrismLauncher/PrismLauncher/pull/3260
fixes #4415
reason: some snapshot have Pre-Release in our meta but when searching in
Modrinth this needs to be translated to -pre and the reverse needed to
be done for filtering after we fetched the version.
Now there are snapshots with -pre in name and that works with Modrinth
but when we translate it back we replace it with Pre-Release so the
easeiest patch is just to double the version(one with -pre one with
Pre-Release)

The correct one would be to complicate the code and identify the
versions that need the transition and only apply this for those.

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-22 19:55:47 +02:00
Rachel Powers
d1b6d7c402 chore: Re-simplify IndexVersionType and MessageLevel with c++20
This sets our compiler requirements to gcc 11 and clang 13. If we
forgo the use of `using enum` we can drop to gcc 10 and clang 10 but
that means using `MessageLevel::Enum::Unknown` for direct enum access

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-12-11 09:59:33 -07:00
TheKodeToad
de5c7bac72 Simplify IndexedVersionType::VersionType -> IndexedVersionType
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-07 14:34:00 +00:00
Trial97
aa265a45ee fix nix build
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:41:56 +02:00
Trial97
8cace06df9 move libarchive outside bundle libs
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:41:22 +02:00
Trial97
30ef158716 finish moving all code to libarchive
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:40:41 +02:00
Trial97
f38a0c8f98 move more zip parsings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:40:40 +02:00
Trial97
8c36be048c move ExtractZipTask
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:39:18 +02:00
Trial97
60b2585711 move some functions from MMCZip to use libarchive
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:39:18 +02:00
Trial97
fa930afe4b move ExportToZipTask
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:39:18 +02:00
Seth Flynn
63e6fc28dc change packwiz extra warnings to debug (#4388) 2025-11-26 11:24:24 -05:00
Edvin Bryntesson
9e614f94cd fix FTBA instance loading
Signed-off-by: Edvin Bryntesson <epost@edvinbryntesson.se>
2025-11-24 13:33:54 +01:00
Trial97
9de2f96341 change packwiz extra warnings to debug
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-23 09:24:51 +02:00
Trial97
f832a361e2 add support for neoforge in atl packs
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-21 22:51:43 +02:00
Alexandru Ionut Tripon
f93e21fa2d deduplicate includes and reformat (#4228) 2025-11-16 18:12:52 +02:00
Octol1ttle
7cbec465cd fix(ModrinthPackIndex): set logo name correctly
Fixes: f90c0a59a7
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2025-11-15 22:42:16 +05:00
TheKodeToad
29bb9fe9f3 Revert some things caught in the crossfire
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-11-10 19:01:24 +00:00
TheKodeToad
51a1e3bfe0 Merge remote-tracking branch 'upstream/develop' into no-ensure
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-11-10 18:56:32 +00:00
TheKodeToad
ff1690532d fix mod select (#4305) 2025-11-10 16:55:21 +00:00
TheKodeToad
e42c9d2a1d Remove ensure JSON helpers
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-11-09 21:35:11 +00:00
Alexandru Ionut Tripon
b070ffaf72 Fix modpack search abort crash (#4327) 2025-11-09 23:17:55 +02:00
Alexandru Ionut Tripon
609aa9f7f3 fix crash when failing to download file (#4249) 2025-11-09 23:08:20 +02:00
TheKodeToad
98afd2086a Make sure nullptr on_abort never gets called
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-11-09 10:52:24 +00:00
Trial97
31cdca77df fix mod select
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-05 14:24:38 +02:00
Dylan Schooner
8d42bdaf6b Check return value of 'virtual bool QFile::open(QIODeviceBase::OpenMode)'
Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
2025-10-30 03:15:14 -04:00
Trial97
2981d9109b fix crash when failing to download file
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-10-23 19:34:44 +03:00
Edgars Cīrulis
91a02a1dc6 style: run-run clang-format on launcher/*
Signed-off-by: Edgars Cīrulis <e.cirulis@proton.me>
2025-10-14 04:05:56 +03:00
Edgars Cīrulis
577f9ca94c style: remove duplicate #include headers
Signed-off-by: Edgars Cīrulis <e.cirulis@proton.me>
2025-10-14 04:03:02 +03:00
Marco von Rosenberg
182d130c18 fix: prioritize .ftbapp/version.json in FTB App import
Newer versions of FTB App create a stub version.json in the instance
root with only a comment directing to .ftbapp/version.json. The old
logic would find this stub file first and fail to parse it, causing
modpacks to not be detected.

This fix checks .ftbapp/version.json first (newer location) before
falling back to the root version.json (older location).

Signed-off-by: Marco von Rosenberg <codingmarco@gmail.com>
2025-10-06 21:56:19 +09:00
Trial97
88399cf922 fix: modrinth modpacks icon importing
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-09-22 14:47:56 +03:00
Trial97
29cff14fd6 removed some duplicate code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-09-15 18:25:07 +03:00
timoreo
31852724b1 Fix resource update with loaders (#3108) 2025-09-12 11:14:02 +02:00
Seth Flynn
4a7772e2d1 Use C++20 (#3957) 2025-08-18 12:15:53 -04:00
moehreag
98ae99c513 add Rift in the two places I missed
Signed-off-by: moehreag <moehreag@gmail.com>
2025-08-05 12:09:27 +02:00
moehreag
100b209043 Add Ornithe, LegacyFabric and Rift mod loader filters
Signed-off-by: moehreag <moehreag@gmail.com>
2025-08-05 11:12:22 +02:00
Trial97
29231e2038 chore: update to cxx20
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-07-30 18:52:52 +03:00
Trial97
f40117b431 update ftb import to consider meta folder
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-07-27 14:59:02 +03:00
Trial97
bd570aa5d1 fix:resource update with loaders
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-07-22 13:33:19 +03:00
Trial97
a75713897d chore:renamed variables to camelCase
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-07-22 13:33:19 +03:00
Alexandru Ionut Tripon
078de50951 make universal resource type (#3541) 2025-07-22 13:31:05 +03:00
Alexandru Ionut Tripon
e043242a8e Reduce usage of [[nodiscard]] attributes (#3952) 2025-07-22 13:30:45 +03:00
Alexandru Ionut Tripon
a7f3cbb6f5 Add "Babric" and "BTA (Babric)" filters as shown on Modrinth (#3961) 2025-07-22 13:30:33 +03:00
Alexandru Ionut Tripon
6f23c6ea41 Update launcher/modplatform/ResourceType.h
Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
2025-07-18 18:22:46 +03:00
Trial97
9a51cd55df make universal resource type
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-07-18 16:17:22 +03:00
timoreo
31d7c3a727 Don't always enable optional mods manually downloaded from CurseForge (#3864) 2025-07-18 08:31:07 +02:00
matthewperiut
20a833e1b9 Add "Babric" and "Babric (BTA)" as shown on Modrinth. Add "Show More" button to allow for space efficiency and readiness to add all other Modrinth modloader types.
Signed-off-by: matthewperiut <matthewperiut@gmail.com>
2025-07-10 11:12:27 -04:00
timoreo
37a9271d5b propagate side as enum instead of Qstring (#3544) 2025-07-09 10:01:51 +02:00
TheKodeToad
29d73a474f Reduce usage of [[nodiscard]] attributes
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-07-07 20:56:29 +01:00
Trial97
21de7a2d97 fix: crash when component version can't be loaded from atlauncher file
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-06-16 22:32:39 +03:00