aboutsummaryrefslogtreecommitdiff
path: root/launcher/CMakeLists.txt
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-08-09 01:58:22 -0300
committerflow <flowlnlnln@gmail.com>2022-08-20 10:45:01 -0300
commitec62d8e97334d3b5a30cea00858e7035468f3609 (patch)
treee87204d6c76c40191fe39d0324ff5bb6a9f787cd /launcher/CMakeLists.txt
parent3225f514f64533394e14bf7aee4e61c19a72ed2f (diff)
downloadPrismLauncher-ec62d8e97334d3b5a30cea00858e7035468f3609.tar.gz
PrismLauncher-ec62d8e97334d3b5a30cea00858e7035468f3609.tar.bz2
PrismLauncher-ec62d8e97334d3b5a30cea00858e7035468f3609.zip
refactor: move general code from mod model to its own model
This aims to continue decoupling other types of resources (e.g. resource packs, shader packs, etc) from mods, so that we don't have to continuously watch our backs for changes to one of them affecting the others. To do so, this creates a more general list model for resources, based on the mods one, that allows you to extend it with functionality for other resources. I had to do some template and preprocessor stuff to get around the QObject limitation of not allowing templated classes, so that's sadge :c On the other hand, I tried cleaning up most general-purpose code in the mod model, and added some documentation, because it looks nice :D Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/CMakeLists.txt')
-rw-r--r--launcher/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt
index 70997e51..d1e0befd 100644
--- a/launcher/CMakeLists.txt
+++ b/launcher/CMakeLists.txt
@@ -320,10 +320,13 @@ set(MINECRAFT_SOURCES
minecraft/mod/ModFolderModel.cpp
minecraft/mod/Resource.h
minecraft/mod/Resource.cpp
+ minecraft/mod/ResourceFolderModel.h
+ minecraft/mod/ResourceFolderModel.cpp
minecraft/mod/ResourcePackFolderModel.h
minecraft/mod/ResourcePackFolderModel.cpp
minecraft/mod/TexturePackFolderModel.h
minecraft/mod/TexturePackFolderModel.cpp
+ minecraft/mod/tasks/BasicFolderLoadTask.h
minecraft/mod/tasks/ModFolderLoadTask.h
minecraft/mod/tasks/ModFolderLoadTask.cpp
minecraft/mod/tasks/LocalModParseTask.h