aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod
AgeCommit message (Collapse)Author
2022-12-24fix: update parse testsRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24feat: validate world savesRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24feat: worldSave parsing and validationRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24feat: add shaderpack validationRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24feat: add a `ModUtils::validate`Rachel Powers
moves the reading of mod files into `ModUtils` namespace Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24feat: add initial support for parseing datapacksRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-15fix(ResourceModel): use a single ConcurrentTask for parsing tasksflow
This avoids creating a bunch of threads that fills up the maximum amount allowed by QThreadPool, and causes a deadlock between the helper threads and the main thread (main thread tries to create threads in painting code, but isn't able to, so it keeps waiting for a thread to free up, but all the threads are waiting on the main thread to process some events). Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-11Merge pull request #461 from flowln/fix_big_resource_pack_imgsflow
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/360
2022-11-27fix: check resource pack validity solely using pack formatSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-20fix: remove commented-out assertionsflow
They may not hold true at all times, and that's fine. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-20refactor: move RP/TP validation to their respective utilsflow
This makes it easier to validate individual resources, and allows the logic to be used in other places in the future, if we need to. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-19fix instance IDs and resource pack importsRyan Cao
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2022-11-19fix: add resource pack format for 1.19.3Ryan Cao
Co-authored-by: Rachel Powers <508861+Ryex@users.noreply.github.com> Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2022-11-19fix: check if packFormat is valid for resourcepack parsingRyan Cao
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2022-11-19fix resource packs and add support for texture packsRyan Cao
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2022-11-15fix: use QPixmapCache only from the main threadflow
It's a required condition. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-15fix: don't retry to load RP images that can't fit in the cacheflow
Avoids an infinite loop when the image is too big. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-14Merge pull request #428 from DioEgizio/fixes-to-CIflow
2022-11-14Pass index.parent() as parent parameter for rowCountTheLastRar
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
2022-11-14Use Q_UNUSED instead of [[maybe_unused]] in onParseFailedTheLastRar
Qt5 on Ubuntu cannot handle [[maybe_unused]] in this function Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
2022-11-14Check parent in rowCount/columnCount/canFetchMoreTheLastRar
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
2022-11-14Mark paramaters of onParseFailed as unusedTheLastRar
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
2022-11-13fix: Fix the error that CodeQL caughttxtsd
Signed-off-by: txtsd <code@ihavea.quest>
2022-11-04fix: use unicode variant for marking '.index' hiddenflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-25Update launcher/minecraft/mod/tasks/LocalModParseTask.cppAlexandru Ionut Tripon
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
2022-09-24Replaced tomlc99 with tomlplusplusTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2022-09-20fix: ensure all resource folders existSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20fix: comments and naming of texture pack stuffSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20fix: testsSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20feat: add texture pack parsingSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-16fix: prevent container detaching in ResourceFolderModelflow
and use const accessors whenever we can! Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-16fix: prevent deletes by shared pointer accidental creationflow
This fixes the launcher crashing when opening the game :iea: Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-16fix: move newly allocated resources to the main threadflow
This avoids them getting deleted when the worker thread exits, due to thread affinity on the created thread. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-16fix: memory leak when getting mods from the mods folderflow
friendly reminder to always delete your news. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-11refactor: restructure testsSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-03fix: improve handling of unrecognized pack formatsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03fix: crash when adding resource packs directly in the folderflow
This fixes an issue in which, when adding a new resource pack externally to PolyMC, when the resource pack view was open, would crash poly. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03fix: race condition on ResourceFolderModel testsflow
This (hopefully) fixes the race contiditions that sometimes got triggered in tests. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03feat: move resource pack images to QPixmapCacheflow
This takes care of evicting entries when the cache gets too big for us, so we can add new entries without much worries. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03feat(tests): add tests for resource pack parsingflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03refactor: move resource pack file parsing utilities to separate namespaceflow
This makes it easier to use that logic in other contexts. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03feat: add image from pack.png to resource packsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03fix: filtering in regex search in resource packsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03fix: sorting by pack formatflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03feat: add basic resource pack parsing of pack.mcmetaflow
This parses the pack format ID and the description from the local file, from both a ZIP and a folder, and hooks it into the model. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03feat: add more resource pack infoflow
Adds pack format id and description to ResourcePack, that'll be parsed from pack.mcmeta. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-03feat: allow specifying factory for resources in BasicFolderLoadTaskflow
This allows us to hook our own resource type, that possibly has more content than the base Resource, to it. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20fix: LGTM warningsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20change: add enable/disable to resourcesflow
TIL that zip resource packs, when disabled, actually have the effect of not showing up in the game at all. Since this can be useful to someone, I moved the logic for it to the resources. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor+fix: add new tests for Resource models and fix issuesflow
Signed-off-by: flow <flowlnlnln@gmail.com>