fix manually install modpack
This commit is contained in:
parent
6e2807b291
commit
717af24098
|
@ -17,6 +17,8 @@
|
|||
*/
|
||||
package com.tungsten.fcl.game;
|
||||
|
||||
import android.os.Environment;
|
||||
|
||||
import com.tungsten.fcl.setting.Profile;
|
||||
import com.tungsten.fclcore.task.Task;
|
||||
import com.tungsten.fclcore.util.io.CompressingUtils;
|
||||
|
@ -48,7 +50,7 @@ public class ManuallyCreatedModpackInstallTask extends Task<Path> {
|
|||
subdirectory = ModpackHelper.findMinecraftDirectoryInManuallyCreatedModpack(zipFile.toString(), fs);
|
||||
}
|
||||
|
||||
Path dest = Paths.get("externalgames").resolve(name);
|
||||
Path dest = Paths.get(Environment.getExternalStorageDirectory().getAbsolutePath() + "/FCL").resolve(name);
|
||||
|
||||
setResult(dest);
|
||||
|
||||
|
|
|
@ -21,12 +21,13 @@ import static com.tungsten.fclcore.util.Lang.mapOf;
|
|||
import static com.tungsten.fclcore.util.Lang.toIterable;
|
||||
import static com.tungsten.fclcore.util.Pair.pair;
|
||||
|
||||
import android.os.Environment;
|
||||
|
||||
import com.google.gson.JsonParseException;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.tungsten.fcl.setting.Profile;
|
||||
import com.tungsten.fcl.setting.Profiles;
|
||||
import com.tungsten.fcl.setting.VersionSetting;
|
||||
import com.tungsten.fclcore.game.GameDirectoryType;
|
||||
import com.tungsten.fclcore.mod.MismatchedModpackTypeException;
|
||||
import com.tungsten.fclcore.mod.Modpack;
|
||||
import com.tungsten.fclcore.mod.ModpackCompletionException;
|
||||
|
@ -181,7 +182,7 @@ public final class ModpackHelper {
|
|||
}
|
||||
|
||||
public static boolean isExternalGameNameConflicts(String name) {
|
||||
return Files.exists(Paths.get("externalgames").resolve(name));
|
||||
return Files.exists(Paths.get(Environment.getExternalStorageDirectory().getAbsolutePath() + "/FCL").resolve(name));
|
||||
}
|
||||
|
||||
public static Task<?> getInstallManuallyCreatedModpackTask(Profile profile, File zipFile, String name, Charset charset) {
|
||||
|
|
Loading…
Reference in New Issue