mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 06:05:10 -04:00
Add debug to attempt fix multiplied arguments
This commit is contained in:
parent
82748cca46
commit
3a9da81033
@ -131,13 +131,16 @@ public final class Tools
|
||||
}
|
||||
*/
|
||||
// Override args
|
||||
// TODO fix duplicate args
|
||||
for (String argOverride : LauncherPreferences.PREF_CUSTOM_JAVA_ARGS.split(" ")) {
|
||||
for (int i = 0; i < overrideableArgList.size(); i++) {
|
||||
String arg = overrideableArgList.get(i);
|
||||
if (arg.startsWith("-D") && argOverride.startsWith(arg.substring(0, arg.indexOf('=') + 1))) {
|
||||
overrideableArgList.set(i, argOverride);
|
||||
System.out.println("ARGProcessor: Replace override arg: " + arg);
|
||||
} else {
|
||||
javaArgList.add(argOverride);
|
||||
System.out.println("ARGProcessor: Add non-override arg: " + arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user