Commit Graph
39 Commits
Author SHA1 Message Date
Trial97 02b26b6ccc chore(clang-tidy): modernize the code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-20 23:28:58 +03:00
Trial97 a6dff43954 refactor: use decl-style TRY_INTO across JSON parsers
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:41:22 +03:00
Trial97 4cc1feec1d rename: rsp to res
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:41:21 +03:00
Trial97 6d48b578c0 refactor(json): add helper functions for requireObject
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:41:21 +03:00
Trial97 03a699d572 refactor(json): chain Result instead of TRY macros
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:41:21 +03:00
Trial97 85e6469b10 refactor: modernize Result usage and clean up dead code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:41:21 +03:00
Trial97 2af360d181 refactor: rename Exception.h to Result.h
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:41:21 +03:00
Trial97 608a65fa60 refactor: replace exception handling with std::expected
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:41:21 +03:00
Trial97 edcf5ea1bc refactor: default Result<> to void value
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:40:34 +03:00
Trial97 a502e989da refactor(jsons): return Result from requireObject
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:40:34 +03:00
Trial97 e944d8edf9 refactor(meta): return Result from metadata parse
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:40:34 +03:00
Trial97 27afd57d3a refactor: migrate file exceptions to Result
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-17 14:40:34 +03:00
Trial97 9e63d9f347 refactor(net): use expected in validator interface
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-09-11 17:29:57 +03:00
Trial97 93feac2ed9 fix: set entity state before emitting success
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-08-15 22:07:24 +03:00
Trial97 adff4b3286 refactor(net): fold Download/Upload into NetRequest
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-08-07 15:00:20 +03:00
Octol1ttle 3ee45691ab change: improve checksum mismatch logging
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2026-04-16 11:32:58 +05:00
morsz 2219c37d7f fix: force metadata version list refreshes to reload
manual refreshes on version selection screens could reuse cached metadata and skip downloading updated manifests, so new versions would not appear until Prism was restarted. pass an explicit forced reload through the shared version list loading path and use it from refresh actions so manual refresh always reloads metadata

Signed-off-by: morsz <morsz@morsz.dev>
2026-04-10 02:19:28 +02:00
Rachel Powers 45df360e4c Reduce include chain further, forward declare settings and log model
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2026-02-09 20:03:10 -07:00
Trial97 6bd8b72f68 fix meta not validating for specific versions
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-08-18 22:38:45 +03:00
Trial97 91d03b34ac Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into validate_metadata 2024-07-21 02:24:30 +03:00
Tayou dcc58c8b75 Merge pull request #2655 from Ryex/fix/json-parsing-validator-buffer-reset
fix(net/validators): ensure buffers are cleared and reset;
2024-07-18 09:11:29 +02:00
Rachel Powers cb65f6dfb5 fix(net/validators): ensure buffers are cleared and reset;
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-07-17 23:05:45 -07:00
Trial97 9d903175ab format
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-06-28 20:51:52 +03:00
Trial97 715c99636d fix offline mode for meta
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-06-28 20:51:28 +03:00
Trial97 06e1cab41f force online in case the offline load failed
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-06-28 20:51:28 +03:00
Trial97 2af6902b42 validate metadata on launch
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-06-28 20:51:26 +03:00
Trial97 147741e616 increment clang-tools version
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-06-28 12:48:52 +03:00
Trial97 031a9f4738 Replaced QFile::remove with FS::deletePath
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-02-10 11:03:51 +02:00
Sefa Eyeoglu 91ba4cf75e chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-08-14 18:16:53 +02:00
Sefa Eyeoglu ef6f9487f4 Merge remote-tracking branch 'upstream/staging' into chore/add-compiler-warnings 2023-08-10 20:38:32 +02:00
Rachel Powers 8d7dcdfc5b chore: fix shadowed member and signed/unsigned mismatch
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: supress unused with [[maybe_unused]]

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: unshadow ^&^& static_cast implicit return

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: deshadow and mark unused in parse task

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: mark unused in folder models

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: deshadow and mark unused with instances

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: more deshadow and unused

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: remove uneeded simicolons

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: mark unused

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>

chore: prevent shadow

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-07-01 23:39:38 -07:00
Rachel Powers 9c10965997 refactor: split out setting api headers for downloads
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-06-25 11:09:25 -07:00
flow 29f7ea752f refactor: make shared_qobject_ptr ctor explicit
This turns issues like creating two shared ptrs from a single raw ptr
from popping up at runtime, instead making them a compile error.

Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-25 16:57:51 -03:00
f00dbdc215 Make Metaserver changable in settings
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
Co-authored-by: flow <flowlnlnln@gmail.com>
2022-05-22 21:35:20 +02:00
Petr Mrázek 9579231ccc NOISSUE fix build and change how NetJob is used
Feed it network upfront...
2021-12-31 05:27:59 +01:00
Petr Mrázek 9fc677c2a4 NOISSUE more refactoring 2021-11-21 23:36:55 +01:00
Petr Mrázek 69213b1206 NOISSUE continue refactoring things to make tests pass 2021-11-21 23:21:12 +01:00
Petr Mrázek 0c861db7a2 NOISSUE Some happy little refactors 2021-11-20 16:22:22 +01:00
Petr Mrázek 20b9f2b42a NOISSUE Flatten gui and logic libraries into MultiMC 2021-07-25 19:50:44 +02:00