mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -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);
|
Tools.copyAssetFile(this, "options.txt", Tools.DIR_GAME_NEW, false);
|
||||||
// TODO: Remove after implement.
|
// TODO: Remove after implement.
|
||||||
Tools.copyAssetFile(this, "launcher_profiles.json", Tools.DIR_GAME_NEW, false);
|
Tools.copyAssetFile(this, "launcher_profiles.json", Tools.DIR_GAME_NEW, false);
|
||||||
|
Tools.copyAssetFile(this,"resolv.conf",Tools.DIR_DATA, true);
|
||||||
AssetManager am = this.getAssets();
|
AssetManager am = this.getAssets();
|
||||||
|
|
||||||
unpackComponent(am, "caciocavallo");
|
unpackComponent(am, "caciocavallo");
|
||||||
|
@ -346,6 +346,8 @@ public class JREUtils {
|
|||||||
"-Dglfwstub.windowHeight=" + CallbackBridge.windowHeight,
|
"-Dglfwstub.windowHeight=" + CallbackBridge.windowHeight,
|
||||||
"-Dglfwstub.initEgl=false",
|
"-Dglfwstub.initEgl=false",
|
||||||
|
|
||||||
|
"-Dext.net.resolvPath=" +new File(Tools.DIR_DATA,"resolv.conf").getAbsolutePath(),
|
||||||
|
|
||||||
"-Dnet.minecraft.clientmodname=" + Tools.APP_NAME,
|
"-Dnet.minecraft.clientmodname=" + Tools.APP_NAME,
|
||||||
"-Dfml.earlyprogresswindow=false" //Forge 1.14+ workaround
|
"-Dfml.earlyprogresswindow=false" //Forge 1.14+ workaround
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user