Commit Graph

4996 Commits

Author SHA1 Message Date
Trial97 7f68f2fe3b fix mod update remaining disabled on second open
fixes
https://discord.com/channels/1031648380885147709/1450161125172707390/1453013386144124929
basically when opening the edit window a second time the model doesn't
get any updates as the data is already loaded into the memory.

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-23 22:32:52 +02:00
Alexandru Ionut Tripon 8a84f5fc1d fix legacy skin model (#4511) 2025-12-22 19:32:25 +02:00
Alexandru Ionut Tripon c723b3abe8 Update launcher/minecraft/skins/SkinModel.cpp
Co-authored-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
2025-12-22 18:22:32 +02:00
Trial97 4b96c5736c add copyright for modrinth code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-22 18:20:06 +02:00
Seth Flynn 39c4e7c79b fix(build): handle CMAKE_BUILD_TYPE with generator expressions (#4553) 2025-12-22 09:50:19 -05:00
Seth Flynn 85849fea41 fix(build): handle CMAKE_BUILD_TYPE with generator expressions
Since we've started using ninja's multi-config generator, evaluating
CMAKE_BUILD_TYPE at configure-time is no longer reliable. Thankfully,
CMake offers "generator expressions" that are evaluated during build
system generation, which allows us to continue using these conditional
flags without much headache

Signed-off-by: Seth Flynn <getchoo@tuta.io>
2025-12-22 03:21:10 -05:00
Alexandru Ionut Tripon ee21ad836f fix modrinth modpack allways download latest (#4549) 2025-12-22 10:09:42 +02:00
Trial97 d7745d97f2 fix modrinth modpack allways download latest
fixes #4547
introduced by #3828
made a mistake to use addonId instead ov fileId
this only applies to modrinth
on curseforge I could not reproduce this bug

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-21 22:45:57 +02:00
Trial97 f4b22dae90 fix accounts crash
fixes #4541
introduced in
https://github.com/PrismLauncher/PrismLauncher/commit/3c46d8a412956a759f61ae802c540ef72d00b35d
The original commit introduced m_name but never used it.
When the endActivity would be called with a count of 0 this would crash
the laucnher.
How to reproduce: try to switch your skin in quick succession until you
get 429 too many requests as response to the login.
I will also presume this is not the only crash caused by this(hopefully
it is as it was not catched for four years)

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-20 23:23:27 +02:00
Alexandru Ionut Tripon d3f59a8a43 fix(skin-preview): smoother chessboard background contrast (#4534) 2025-12-20 18:51:04 +02:00
Tayou fcf201755c fix skin preview leg rendering
Signed-off-by: Tayou <git@tayou.org>
2025-12-20 08:50:49 +01:00
Rachel Powers 42b72d676c fix(skin-preview): smoother chessboard background contrast
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-12-19 16:53:31 -07:00
Alexandru Ionut Tripon 877b824c3b fix skin depth (#4524) 2025-12-19 20:26:51 +02:00
Alexandru Ionut Tripon 2f540ffc61 fix elytra preview (#4525) 2025-12-19 20:26:35 +02:00
Seth Flynn 53fbc39ad1 Use sharun to bundle AppImage (#4515) 2025-12-19 03:43:51 -05:00
Trial97 e360a95c23 fix elytra preview
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-19 01:14:19 +02:00
Trial97 624d506fac fix skin depth
The skin overlay was drawn together with the original skin making it
blend weirdly. By drawing the overlay after the skin this blends with
the body corectly.

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-19 00:01:39 +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
Alexandru Ionut Tripon 018ff600f6 Use static image when opengl context is not available (#4509) 2025-12-18 13:21:00 +02:00
Seth Flynn e39e59acb6 revert: "fix(launcher): set correct bin path for self-contained appimages"
Refs: b1b4b5d
Signed-off-by: Seth Flynn <getchoo@tuta.io>
2025-12-17 23:53:47 -05:00
Seth Flynn 1d8bf82ef8 revert: "fix(appimage): launch external processes with bundled linker"
Refs: c305ed4
Signed-off-by: Seth Flynn <getchoo@tuta.io>
2025-12-17 23:53:46 -05:00
Trial97 f7111b6ec1 fix legacy skin model
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-17 00:03:19 +02:00
Alexandru Ionut Tripon 3c570f9e9c Update launcher/ui/dialogs/skins/SkinManageDialog.cpp
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
2025-12-16 20:56:41 +02:00
Tayou 5ebd386797 server player req: parse malformed json
ATM10 server seems to send a extra json object after the default response, that we need to cut off.
Signed-off-by: Tayou <git@tayou.org>
Co-authored-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-16 14:51:01 +01:00
Trial97 177e7b272b Use static image when opengl context is not available
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-16 13:36:28 +02:00
Seth Flynn fc3c5cba30 Use multibyte encoding aware libarchive functions when dealing with filenames (#4457) 2025-12-15 08:09:25 -05:00
Rachel Powers b40544dc55 fix: remove locale forcing as unnecessary
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-12-14 22:43:22 -07:00
Rachel Powers c33d104dc3 fix leak of cloned entry (#4487) 2025-12-13 18:52:49 -07:00
Rachel Powers 95d2789199 fix archive detection (#4486) 2025-12-13 16:02:50 -07:00
Alexandru Ionut Tripon 66c9fafbe8 Use old ProjectItem highlight on Windows styles (#4466) 2025-12-14 00:56:30 +02:00
Alexandru Ionut Tripon ed63a355b0 fix partial java download (#4472) 2025-12-14 00:55:05 +02:00
Alexandru Ionut Tripon aa3d78b3dc Fix server columns text other than name being invisible (#4475) 2025-12-14 00:54:42 +02:00
TheKodeToad caa69ee204 Allow http://localhost for meta (#4477) 2025-12-13 22:53:05 +00:00
Trial97 f05fd4da2b fix leak of cloned entry
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-14 00:20:24 +02:00
Trial97 e775629e1f fix archive detection
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-14 00:03:34 +02:00
TheKodeToad d818f232e3 Allow http://localhost for meta
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-12 17:21:00 +00:00
Alexandru Ionut Tripon 9a505a07c0 Make page sidebar look less disjointed on breeze (#4465) 2025-12-12 14:51:36 +02:00
TheKodeToad 0d7244d56f Remove unused code
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-12 12:18:56 +00:00
TheKodeToad 7baac92f56 Fix server columns being totally invisible
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-12 12:07:19 +00:00
Trial97 0f7320ff1d fix partial java download
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-12 09:34:54 +02:00
Trial97 9cd199a49e fix use-afrer-free crash caused by QtConcurrent
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-12 09:00:30 +02:00
TheKodeToad 81f34be053 Use old ProjectItem highlight on Windows styles
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-11 15:46:31 +00:00
TheKodeToad 2b949d5fdd Make page container hug edges of dialog <3
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-12-11 14:07:02 +00:00
Trial97 808b09c403 improve archive detection
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-11 12:54:49 +02:00
Rachel Powers 28d27d4f19 refactor(MessageLevel): move and rename 'FromLine*' functions
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-12-11 09:59:33 -07: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
Rachel Powers 5e7de6bc53 Apply suggestions from code review
Co-authored-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-12-10 22:01:36 -07:00