Fix ld lib path (2/2)

This commit is contained in:
khanhduytran0 2020-11-05 19:31:45 +07:00
parent ffd740ffdf
commit ffa6d7d0d7
3 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ public class InstallModActivity extends LoggableActivity {
private int launchJavaRuntime(File modFile, String javaArgs) {
try {
JREUtils.relocateLibPath();
JREUtils.relocateLibPath(this);
List<String> javaArgList = new ArrayList<String>();
javaArgList.add(Tools.homeJreDir + "/bin/java");

View File

@ -314,7 +314,7 @@ public class PojavLoginActivity extends AppCompatActivity
setPref(PREF_IS_INSTALLED_JAVARUNTIME, true);
}
JREUtils.relocateLibPath();
JREUtils.relocateLibPath(this);
File ftIn = new File(Tools.homeJreDir, Tools.homeJreLib + "/libfreetype.so.6");
File ftOut = new File(Tools.homeJreDir, Tools.homeJreLib + "/libfreetype.so");

View File

@ -76,7 +76,7 @@ public final class Tools
public static ShellProcessOperation mLaunchShell;
private static int exitCode = 0;
public static void launchMinecraft(final LoggableActivity ctx, MCProfile.Builder profile, JMinecraftVersionList.Version versionInfo) throws Throwable {
JREUtils.relocateLibPath();
JREUtils.relocateLibPath(ctx);
String[] launchArgs = getMinecraftArgs(profile, versionInfo);
List<String> javaArgList = new ArrayList<String>();