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 +4
-5
lines changed
src/main/java/id.my.alvinq.prokitid.libs Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,19 @@ public class Libs {
1010 public static void onLoad (Context context ) {
1111 Toast .makeText (context , "PL loaded!" , Toast .LENGTH_LONG ).show ();
1212
13- try {
14- if (context instanceof Activity ) {
13+
1514 Intent intent = ((Activity ) context ).getIntent ();
1615 String itusk = intent .getStringExtra ("MC_PATH" );
1716 FileUtils .copyFile (itusk + "/version.txt" , "/storage/emulated/0/alvinqid/version.txt" );
1817 FileUtils .copyFile ("/storage/emulated/0/alvinqid/mods/mbloader.so" , itusk + "/lib/arm64/mtbinloader2.so" );
19- System .loadLibrary ("mtbinloader2" );
20- }
21- } catch (Exception e ) {}
18+
19+
2220
2321 File dataDir = context .getFilesDir ().getParentFile ();
2422 File externalDataDir = context .getExternalFilesDir (null ).getParentFile ();
2523
2624 FileUtils .copyFolder (dataDir .getAbsolutePath (), "/storage/emulated/0/alvinqid/apps/internal/data" );
2725 FileUtils .copyFolder (externalDataDir .getAbsolutePath (), "/storage/emulated/0/alvinqid/apps/external/data" );
26+ System .loadLibrary ("mtbinloader2" );
2827 }
2928}
You can’t perform that action at this time.
0 commit comments