This repository was archived by the owner on Dec 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/main/java/id.my.alvinq.prokitid.libs Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 99public class Libs {
1010 public static void onLoad (Context context ) {
1111 Toast .makeText (context , "PL loaded!" , Toast .LENGTH_LONG ).show ();
12-
1312 new FileUtils (context );
14-
15- Intent intent = ((Activity ) context ).getIntent ();
16- String itusk = intent .getStringExtra ("MC_PATH" );
17- FileUtils .copyFile (itusk + "/version.txt" , "/storage/emulated/0/alvinqid/version.txt" );
18- FileUtils .copyFile ("/storage/emulated/0/alvinqid/mods/mbloader.so" , itusk + "/lib/arm64/mtbinloader2.so" );
19-
20-
13+ Intent intent = ((Activity ) context ).getIntent ();
14+ String mcPath = intent .getStringExtra ("MC_PATH" );
15+ File libFile = new File (mcPath + "/lib/arm64" );
16+ String libPath = libFile .getAbsolutePath ();
17+ if (!libFile .exists ) libFile .mkdirs ();
18+ FileUtils .copyFile ("/storage/emulated/0/alvinqid/mods/mbloader.so" , libPath + "/mtbinloader2.so" );
2119
2220 File dataDir = context .getFilesDir ().getParentFile ();
2321 File externalDataDir = context .getExternalFilesDir (null ).getParentFile ();
You can’t perform that action at this time.
0 commit comments