Age | Commit message (Collapse) | Author |
|
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>
|
|
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
Adds pack format id and description to ResourcePack, that'll be parsed
from pack.mcmeta.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
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>
|
|
|
|
Move classpath definition into NewLaunch itself
|
|
Never invalidate libraries cache entries by time elapsed
|
|
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
Fix build due to merge without rebase messing things up :p
|
|
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
|
|
Refactor a bit EnsureMetadataTask and calculate hashes in a incremental manner
|
|
fix: fix urls on ftb legacy
|
|
Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
|
|
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
This restores the behavior prior to PR #920.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
Those are entries that don't get stale over time, so we don't invalidate
them if they 'expire'.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
fix(COPYING): fix COPYING.md by adding some missing copyright notices
|
|
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
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>
|
|
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
No need to keep track of pointers left and right. A single one already
gives enough headaches!
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
If the update never ends, the signal is not emitted and we become stuck
in the event loop forever. So a very lenient timer is added to prevent
that.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
It causes some weird problems and adds refcounting overhead.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
In order to access the ModFolderModel from the ModFolderPage, i created
a new m_model for the correct type, shadowing the m_model of type
ResourceFolderModel. This creates two shared_ptr references to the same object,
but since they will have the same lifetime, it doesn't generate a memory
leak.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
This moves the QSortFilterProxyModel to the resource model files,
acessible via a factory method, and moves the sorting and filtering to
the objects themselves, decoupling the code a bit.
This also adds a basic implementation of methods in the
ResourceFolderModel, simplifying the process of constructing a new model
from it.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
Makes the method order in the cpp file the same as in the header file.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
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>
|
|
This allows us to create other resources that are not Mods, but can
still share a significant portion of code.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
This makes it possible to run a task in another thread.
I added a variable to toggle debug prints because they seem to trigger
an assertion on Qt internals when the task in on another thread. Of
course, this isn't awesome, but can wait until we improve our logging.
Signed-off-by: flow <flowlnlnln@gmail.com>
|
|
Make Coremods / Mods seperation more clear
|
|
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DioEgizio/fix-update-org.polymc.PolyMC.metainfo.xml.in
|
|
Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
|
|
|
|
Signed-off-by: Tayou <tayou@gmx.net>
|
|
|
|
this should find java installs from scoop as well as any other installer, that registers java in the PATH environment variable.
Signed-off-by: Tayou <tayou@gmx.net>
|
|
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
|
|
Decode process lines as UTF-8
|
|
release
Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
|
|
This should correctly decode multi-byte non-UTF-8 text, such as Windows-936 (Simplified Chinese)
Signed-off-by: Mitchell Skaggs <skaggsm333@gmail.com>
|
|
Signed-off-by: flow <flowlnlnln@gmail.com>
|