Skip to content

Commit

Permalink
Add asm-deprecated for versions which need it
Browse files Browse the repository at this point in the history
  • Loading branch information
NeRdTheNed committed Oct 16, 2023
1 parent 590a4db commit 222faf5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions multimc/patches/RetroWrapper-J9.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
"name": "org.ow2.asm:asm-analysis:9.6",
"url": "https://repo1.maven.org/maven2/"
},
{
"name": "org.ow2.asm:asm-deprecated:7.1",
"url": "https://repo1.maven.org/maven2/"
},
{
"name": "net.java.jinput:jinput:2.0.5"
},
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/zero/retrowrapper/installer/Installer.java
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,11 @@ static void wrapInstances(Logger installerLogger, int[] mapInd) {
"https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/9.6/asm-analysis-9.6.jar",
"9ce6c7b174bd997fc2552dff47964546bd7a5ec3",
34041L);
final JsonObject asmDeprecated = MetadataUtil.createMojangLibrary("org.ow2.asm:asm-deprecated:7.1",
"org/ow2/asm/asm-deprecated/7.1/asm-deprecated-7.1.jar",
"https://repo1.maven.org/maven2/org/ow2/asm/asm-deprecated/7.1/asm-deprecated-7.1.jar",
"004ad3a41a931f2ef0aa8f8dc5d7c82090d744c1",
9152L);
// Log4j API 2.3.2 as a Mojang library JSON object
// LaunchWrapper 1.12 requires it.
final JsonObject log4jAPI = MetadataUtil.createMojangLibrary("org.apache.logging.log4j:log4j-api:2.3.2",
Expand All @@ -517,6 +522,7 @@ static void wrapInstances(Logger installerLogger, int[] mapInd) {
asmUtil,
asmTree,
asmAnalysis,
asmDeprecated,
launchWrapperOneTwelve,
log4jAPI,
log4jCore
Expand Down

0 comments on commit 222faf5

Please sign in to comment.