mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 06:05:10 -04:00
Fix Fabric repo; Fix OpenAL
This commit is contained in:
parent
feb2eff4c3
commit
09dc4c39d0
@ -19,6 +19,8 @@ public class JREUtils
|
||||
dlopen(Tools.homeJreDir + "/lib/libawt.so");
|
||||
dlopen(Tools.homeJreDir + "/lib/libawt_headless.so");
|
||||
|
||||
dlopen("libopenal.so");
|
||||
|
||||
if (!dlopen(LauncherPreferences.PREF_CUSTOM_OPENGL_LIBNAME)) {
|
||||
System.err.println("Failed to load custom OpenGL library " + LauncherPreferences.PREF_CUSTOM_OPENGL_LIBNAME + ". Fallbacking to GL4ES.");
|
||||
dlopen("libgl04es.so");
|
||||
|
@ -553,7 +553,7 @@ public class MCLauncherActivity extends AppCompatActivity
|
||||
|
||||
if (libItem.downloads == null || libItem.downloads.artifact == null) {
|
||||
MinecraftLibraryArtifact artifact = new MinecraftLibraryArtifact();
|
||||
artifact.url = "https://libraries.minecraft.net/" + libArtifact;
|
||||
artifact.url = (libItem.url == null ? "https://libraries.minecraft.net/" : libItem.url) + libArtifact;
|
||||
libItem.downloads = new DependentLibrary.LibraryDownloads(artifact);
|
||||
|
||||
skipIfFailed = true;
|
||||
@ -570,6 +570,7 @@ public class MCLauncherActivity extends AppCompatActivity
|
||||
throw th;
|
||||
} else {
|
||||
th.printStackTrace();
|
||||
publishProgress("0", th.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ package net.kdt.pojavlaunch.value;
|
||||
public class DependentLibrary {
|
||||
public String name;
|
||||
public LibraryDownloads downloads;
|
||||
public String url;
|
||||
|
||||
public static class LibraryDownloads
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user