diff options
| author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-06-29 00:07:06 +0200 |
|---|---|---|
| committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-06-29 00:07:06 +0200 |
| commit | eba932312d09604c32ef2d8fc09f15daa924ade5 (patch) | |
| tree | e271dd98715edff5e1b1924c5cb2ba4d9e283793 /meta | |
| parent | 4f749ba9af1c6e685c5f55b8af58e961f638de55 (diff) | |
| download | Project-Tick-eba932312d09604c32ef2d8fc09f15daa924ade5.tar.gz Project-Tick-eba932312d09604c32ef2d8fc09f15daa924ade5.zip | |
refactor: patch tinyfd in LWJGL 3.2.2
When we have this cool patching mechanism, we could just use it to patch our existing LWJGL, instead of providing a static one
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/common/mojang.py | 1 | ||||
| -rw-r--r-- | meta/model/mojang.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/meta/common/mojang.py b/meta/common/mojang.py index 0b8dc0285e..a2d39e9f1a 100644 --- a/meta/common/mojang.py +++ b/meta/common/mojang.py @@ -7,7 +7,6 @@ VERSIONS_DIR = join(BASE_DIR, "versions") ASSETS_DIR = join(BASE_DIR, "assets") STATIC_EXPERIMENTS_FILE = join(BASE_DIR, "minecraft-experiments.json") -STATIC_LWJGL322_FILE = join(BASE_DIR, "lwjgl-3.2.2.json") STATIC_OVERRIDES_FILE = join(BASE_DIR, "minecraft-legacy-override.json") LIBRARY_PATCHES_FILE = join(BASE_DIR, "library-patches.json") diff --git a/meta/model/mojang.py b/meta/model/mojang.py index e99145cc5c..65814179da 100644 --- a/meta/model/mojang.py +++ b/meta/model/mojang.py @@ -114,6 +114,10 @@ class LibraryPatch(MetaBase): match: List[GradleSpecifier] override: Optional[Library] additionalLibraries: Optional[List[Library]] + patchAdditionalLibraries: bool = Field(False) + + def applies(self, target: Library) -> bool: + return target.name in self.match class LibraryPatches(MetaBase): |
