Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Commit c27c065

Browse files
authored
Update Libs.java
1 parent 12e2a0c commit c27c065

File tree

1 file changed

+8
-7
lines changed
  • src/main/java/id.my.alvinq.prokitid.libs

1 file changed

+8
-7
lines changed

src/main/java/id.my.alvinq.prokitid.libs/Libs.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@ public static void onLoad(Context context) {
1111
new FileUtils(context);
1212
Intent intent = ((Activity) context).getIntent();
1313
String mcPath = intent.getStringExtra("MC_PATH");
14-
Toast.makeText(context, "PL loaded!\n" + mcPath, Toast.LENGTH_LONG).show();
14+
Toast.makeText(context, "PL loaded!", Toast.LENGTH_LONG).show();
1515
/*File libFile = new File(mcPath,"lib/arm64");
1616
String libPath = libFile.getAbsolutePath();
17-
libFile.mkdirs();
18-
FileUtils.copyFile("/storage/emulated/0/alvinqid/mods/mbloader.so", libPath + "/mtbinloader2.so");
19-
17+
libFile.mkdirs();*/
18+
FileUtils.copyFile("/storage/emulated/0/alvinqid/mods/mbloader.so", "/data/user/0/org.levimc.launcher/cache/libs/mods/libmbloader.so");
19+
/*
2020
File dataDir = context.getFilesDir().getParentFile();
2121
File externalDataDir = context.getExternalFilesDir(null).getParentFile();
2222
2323
FileUtils.copyFolder(dataDir.getAbsolutePath(), "/storage/emulated/0/alvinqid/apps/internal/data");
24-
FileUtils.copyFolder(externalDataDir.getAbsolutePath(), "/storage/emulated/0/alvinqid/apps/external/data");
25-
System.loadLibrary("mtbinloader2");*/
26-
FileUtils.copyFolder("/storage/emulated/0/alvinqid/minecraft/lib", mcPath + "/lib");
24+
FileUtils.copyFolder(externalDataDir.getAbsolutePath(), "/storage/emulated/0/alvinqid/apps/external/data");*/
25+
System.loadLibrary("minecraftpe");
26+
System.load("/data/user/0/org.levimc.launcher/cache/libs/mods/libmbloader.so");
27+
//FileUtils.copyFolder("/storage/emulated/0/alvinqid/minecraft/lib", mcPath + "/lib");
2728
}
2829
}

0 commit comments

Comments
 (0)