mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-23 02:57:31 -04:00
[Forge installer] bug fixes
This commit is contained in:
@@ -108,6 +108,8 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
||||
}
|
||||
|
||||
private void doCustomInstall(File modFile, String javaArgs) throws IOException {
|
||||
isLogAllow = true;
|
||||
|
||||
// Attempt to detects some mod installers
|
||||
BaseInstaller installer = new BaseInstaller();
|
||||
installer.setInput(modFile);
|
||||
@@ -116,6 +118,7 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
||||
appendlnToLog("Detected Forge installer!");
|
||||
new ForgeInstaller(installer).install(this);
|
||||
} else {
|
||||
isLogAllow = false;
|
||||
mIsCustomInstall = false;
|
||||
launchJavaRuntime(modFile, javaArgs);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public class ForgeInstaller extends BaseInstaller {
|
||||
String[] libInfos = profile.install.path.split(":");
|
||||
File libraryFile = new File(Tools.libraries, Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2]));
|
||||
libraryFile.mkdirs();
|
||||
target = libraryFile.getAbsolutePath() + "/" + profile.install.filePath.replace("-universal", "");
|
||||
target = libraryFile.getAbsolutePath().replace("-universal", "");
|
||||
ctx.appendlnToLog("Writing " + target);
|
||||
FileOutputStream out = new FileOutputStream(target);
|
||||
IOUtils.copy(mJarFile.getInputStream(mJarFile.getEntry(profile.install.filePath)), out);
|
||||
|
||||
Reference in New Issue
Block a user