mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 06:05:10 -04:00
Resolver changes
- Modified ResConfHack to read resolv data from the Java property - Added auto-unpacking of premade resolv.conf and setting the Java property (Now SRV resolving should work on Java 17 by default)
This commit is contained in:
parent
de50fd93fe
commit
dc479a2f03
Binary file not shown.
2
app_pojavlauncher/src/main/assets/resolv.conf
Normal file
2
app_pojavlauncher/src/main/assets/resolv.conf
Normal file
@ -0,0 +1,2 @@
|
||||
nameserver 8.8.8.8
|
||||
nameserver 8.8.4.4
|
@ -338,7 +338,7 @@ public class PojavLoginActivity extends BaseActivity
|
||||
Tools.copyAssetFile(this, "options.txt", Tools.DIR_GAME_NEW, false);
|
||||
// TODO: Remove after implement.
|
||||
Tools.copyAssetFile(this, "launcher_profiles.json", Tools.DIR_GAME_NEW, false);
|
||||
|
||||
Tools.copyAssetFile(this,"resolv.conf",Tools.DIR_DATA, true);
|
||||
AssetManager am = this.getAssets();
|
||||
|
||||
unpackComponent(am, "caciocavallo");
|
||||
|
@ -346,6 +346,8 @@ public class JREUtils {
|
||||
"-Dglfwstub.windowHeight=" + CallbackBridge.windowHeight,
|
||||
"-Dglfwstub.initEgl=false",
|
||||
|
||||
"-Dext.net.resolvPath=" +new File(Tools.DIR_DATA,"resolv.conf").getAbsolutePath(),
|
||||
|
||||
"-Dnet.minecraft.clientmodname=" + Tools.APP_NAME,
|
||||
"-Dfml.earlyprogresswindow=false" //Forge 1.14+ workaround
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user