Handle ingame opening folder/link
This commit is contained in:
1 parent
b772e3d8f2
commit
a282074914
8 files changed
+79
-68
No files matched your search
+6
-13
@@ -11,10 +11,15 @@ import net.kdt.pojavlaunch.uikit.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
import net.kdt.pojavlaunch.value.*;
|
||||
|
||||
public class PLaunchApp {
|
||||
public class PojavLauncher {
|
||||
private static float currProgress, maxProgress;
|
||||
|
||||
public static void main(String[] args) throws Throwable {
|
||||
/*
|
||||
try {
|
||||
Runtime.getRuntime().exec("/usr/bin/true");
|
||||
} catch (IOException e) {}
|
||||
*/
|
||||
try {
|
||||
sun.font.FontUtilities.isLinux = true;
|
||||
} catch (Throwable th) {
|
||||
@@ -72,16 +77,4 @@ public class PLaunchApp {
|
||||
|
||||
Tools.launchMinecraft(account, version);
|
||||
}
|
||||
|
||||
// TODO
|
||||
/*
|
||||
public static void downloadAssetMapped(String assetName, JAssetInfo asset, File resDir) throws IOException {
|
||||
String assetPath = asset.hash.substring(0, 2) + "/" + asset.hash;
|
||||
File outFile = new File(resDir,"/"+assetName);
|
||||
if (!outFile.exists()) {
|
||||
UIKit.updateProgressSafe(currProgress / maxProgress, "Downloading " + assetName);
|
||||
DownloadUtils.downloadFile(MINECRAFT_RES + assetPath, outFile);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package net.kdt.pojavlaunch.utils;
|
||||
|
||||
import android.util.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
// import libcore.io.*;
|
||||
|
||||
import net.kdt.pojavlaunch.*;
|
||||
|
||||
import org.lwjgl.glfw.*;
|
||||
|
||||
public class JREUtils
|
||||
{
|
||||
private JREUtils() {}
|
||||
|
||||
|
||||
static {
|
||||
System.load(System.getenv("BUNDLE_PATH") + "/PojavLauncher");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user