Skip to content

Commit

Permalink
Give the app context to MCXR
Browse files Browse the repository at this point in the history
  • Loading branch information
Novampr authored Dec 30, 2024
1 parent daa42b3 commit 8b167c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/pojlib/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static void startGame(
List<String> allArgs = new ArrayList<>(Arrays.asList(additionalArgs));
JREUtils.redirectAndPrintJRELog(activity);
VLoader.setAndroidInitInfo(activity);
VLoader.setActivity(activity); // For MCXR
try {
JREUtils.launchJavaVM(activity, allArgs, mcArgs, mcAdditionalArgs, gameDir, memoryValue, vrModel, mainClass, jvmHome);
} catch (Throwable t) {
Expand Down

0 comments on commit 8b167c8

Please sign in to comment.