Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-03 | fix: race condition on ResourceFolderModel tests | flow | |
This (hopefully) fixes the race contiditions that sometimes got triggered in tests. Signed-off-by: flow <flowlnlnln@gmail.com> | |||
2022-09-03 | feat: allow specifying factory for resources in BasicFolderLoadTask | flow | |
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-20 | refactor+fix: add new tests for Resource models and fix issues | flow | |
Signed-off-by: flow <flowlnlnln@gmail.com> | |||
2022-08-20 | fix: don't give shared pointer to obj. external to the model | flow | |
It causes some weird problems and adds refcounting overhead. Signed-off-by: flow <flowlnlnln@gmail.com> | |||
2022-08-20 | refactor: move general code from mod model to its own model | flow | |
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> |