Commit Graph

664 Commits

Author SHA1 Message Date
TheKodeToad 481a1d222c Fix use after free
If any page apply methods return false, the launcher breaks when opening an instance window for the second time

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-03-25 16:31:41 +00:00
TheKodeToad 18ee1f897a Global data packs
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-03-25 16:28:16 +00:00
TheKodeToad 6ab4fef0c5 Merge remote-tracking branch 'upstream/develop' into data-packs
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-03-24 21:11:46 +00:00
Trial97 f7fd6f566f chore:fixed some codeql warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-03-24 22:25:35 +02:00
TheKodeToad adf2ed0849 Only fire apply event when settings are actually applied
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-03-23 15:22:17 +00:00
Alexandru Ionut Tripon d0b9073f60 Show online players on servers screen (#3112) 2025-03-16 08:30:12 +02:00
Sticks d4e1851e67 fix: remove qWarning for unknown state
Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Sticks <sticks@teamhydra.dev>
2025-03-04 22:20:40 -06:00
Sticks ea5458ed22 fix: Grammar correction in failed message for update dialogues
Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Sticks <sticks@teamhydra.dev>
2025-02-28 21:06:34 -06:00
sticks 998bc660fa feat: add updater dialogues
Signed-off-by: sticks <tanner@teamhydra.dev>
2025-02-28 15:09:46 -06:00
iTrooz 34233a93a2 MinecraftTarget::parse() to parse IP
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-02-13 00:55:35 +01:00
Trial97 14b653e08d remove some unused files
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-02-12 20:16:00 +02:00
TheKodeToad f7a401ab22 Update launcher/ui/pages/instance/InstanceSettingsPage.h
Co-authored-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-02-05 12:09:26 +00:00
TheKodeToad cc504f4a6c Merge remote-tracking branch 'upstream/develop' into unify-mc-settings
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-01-27 17:02:50 +00:00
TheKodeToad 81769b9047 Use MinecraftInstancePtr instance of InstancePtr
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-01-27 14:34:07 +00:00
TheKodeToad 98ab686348 Merge remote-tracking branch 'upstream/develop' into unify-mc-settings
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-01-27 13:18:19 +00:00
iTrooz bb20848449 use more sensible protocol version
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-01-25 21:01:21 +01:00
iTrooz 0b9d4784d8 Show socket error in McClient
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-01-25 20:26:52 +01:00
iTrooz b06c4341d8 update documentation
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-01-25 20:22:09 +01:00
iTrooz 7c82cd82d7 use m_responseReadState to avoid calling parseResponse() (as a failsafe for malicious/bad server responses)
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-01-25 20:19:19 +01:00
iTrooz 439c565961 forward McResolver error as Task error
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-01-25 20:14:15 +01:00
iTrooz cf2b413f29 forward McClient error as Task error
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-01-25 20:10:31 +01:00
iTrooz fe8f755b43 remove waitForConnected() and waitForReadyRead() and use signals ineatd
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-01-25 20:08:44 +01:00
iTrooz 43376b1c40 remove unused defines in McClient.h
Signed-off-by: iTrooz <hey@itrooz.fr>
2025-01-25 19:06:52 +01:00
Alexandru Ionut Tripon fbd886e9db Merge pull request #3255 from Trial97/propagate_load
propagate load component error
2025-01-09 00:11:48 +02:00
Trial97 d40c8b704c fix drop file on resource page
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-01-08 01:52:11 +02:00
Trial97 6ebfcb91cf propagate load component error
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-12-31 13:44:22 +02:00
iTrooz f9e450ace2 do not destroy the ping ConcurrentTask directly at the end of the task
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-12-05 20:43:40 +01:00
iTrooz 4e48015868 currentQueryTask -> m_currentQueryTask
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-12-05 20:43:40 +01:00
iTrooz ba0bd5fd74 Use shared pointer to store server query task
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-11-29 19:42:54 +01:00
iTrooz 1477d64400 add m_ prefix to class members
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-11-29 19:42:52 +01:00
iTrooz 4aaf7b9b09 chore
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-11-29 14:07:39 +01:00
iTrooz 01db826ec9 Reset online players UI component when refreshing 2024-11-29 00:58:08 +01:00
iTrooz b0778e7a1f chore 2024-11-29 00:44:31 +01:00
iTrooz 09782745c6 make writePacketToSocket() clear data automatically 2024-11-29 00:44:25 +01:00
iTrooz ae7d3379e4 abort current query task if present when refreshing 2024-11-29 00:39:43 +01:00
iTrooz 5eb417ff2b Always autodelete signal connections with this captured when the objet is deleted, just to be sure 2024-11-28 23:54:51 +01:00
iTrooz cfb0c97262 use Json::requireInteger() 2024-11-28 18:09:38 +01:00
iTrooz dbb88ca7df move ServerPingTask in its own file 2024-11-28 17:46:42 +01:00
iTrooz 8b90a9f2b3 remove infinite loop from readVarInt() 2024-11-28 17:32:49 +01:00
iTrooz 873232ebe3 remove infinite loop in writeVarInt() 2024-11-28 17:29:35 +01:00
iTrooz 26f50f9b81 connect job to deletion task before starting it
This ensures the signal is not fired before we have connected it
2024-11-26 18:50:37 +01:00
iTrooz ca52d00b80 replace std::string by QString in emitFail() 2024-11-26 18:47:13 +01:00
iTrooz 66f36195d8 simplify code 2024-11-26 18:44:21 +01:00
iTrooz f05548f3a3 remove implicit captures 2024-11-26 18:43:14 +01:00
iTrooz 3a9c030982 Do not timeout after just 3000ms
Keep the network default timeout
2024-11-26 18:24:46 +01:00
iTrooz fef8ee2d1b Disconnect task finished signal when ServersModel is destroyed 2024-11-26 18:16:15 +01:00
iTrooz 7c61fec8e0 Make task output online players rather than updating Server itself
This doesn't really change anything
2024-11-26 18:03:35 +01:00
iTrooz 087ab70143 refresh UI when we got the players online 2024-11-26 14:33:02 +01:00
iTrooz 4fad298d67 put more McClient methods to private 2024-11-26 13:22:02 +01:00
iTrooz 520d6b0b42 run socket code in thread 2024-11-26 13:22:00 +01:00