Skip to content

Commit

Permalink
Put 'app/libs/boardwalk_lwjgl_buffer.jar' to attempt fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Aug 8, 2020
1 parent a5d020d commit f02ae57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file added app/libs/boardwalk_lwjgl_buffer.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion app/src/main/java/net/kdt/pojavlaunch/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ public void onClick(DialogInterface p1, int p2)
if (mVersionInfo.arguments == null) {
// Minecraft 1.12 and below

SecondaryDexLoader.install(getClassLoader(), Arrays.asList(new File[]{new File(Tools.libraries + "/" + Tools.artifactToPath("org.lwjgl", "lwjglboardwalk", "2.9.1"))}), optDir);
// TODO uncomment after fix
// SecondaryDexLoader.install(getClassLoader(), Arrays.asList(new File[]{new File(Tools.libraries + "/" + Tools.artifactToPath("org.lwjgl", "lwjglboardwalk", "2.9.1"))}), optDir);
}

this.displayMetrics = Tools.getDisplayMetrics(this);
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/net/kdt/pojavlaunch/SecondaryDexLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,7 @@ public static void resetFieldArray(ClassLoader loader) throws Throwable {

Field jlrField = findField(instance, "dexElements");
jlrField.set(instance, originalDex);

originalDex = null;
}
}

0 comments on commit f02ae57

Please sign in to comment.