fix(MobileGlues): Don't log MGlues config if not used

This commit is contained in:
alexytomi 2025-07-19 21:10:37 +08:00
parent 433f217a0a
commit 325811baea

View File

@ -349,7 +349,6 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
} }
private void runCraft(String versionId, JMinecraftVersionList.Version version) throws Throwable { private void runCraft(String versionId, JMinecraftVersionList.Version version) throws Throwable {
LauncherPreferences.writeMGRendererSettings(); // No MG detection for you
if(Tools.LOCAL_RENDERER == null) { if(Tools.LOCAL_RENDERER == null) {
Tools.LOCAL_RENDERER = LauncherPreferences.PREF_RENDERER; Tools.LOCAL_RENDERER = LauncherPreferences.PREF_RENDERER;
} }
@ -363,6 +362,9 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
MinecraftAccount minecraftAccount = PojavProfile.getCurrentProfileContent(this, null); MinecraftAccount minecraftAccount = PojavProfile.getCurrentProfileContent(this, null);
Logger.appendToLog("--------- Starting game with Launcher Debug!"); Logger.appendToLog("--------- Starting game with Launcher Debug!");
Tools.printLauncherInfo(versionId, Tools.isValidString(minecraftProfile.javaArgs) ? minecraftProfile.javaArgs : LauncherPreferences.PREF_CUSTOM_JAVA_ARGS); Tools.printLauncherInfo(versionId, Tools.isValidString(minecraftProfile.javaArgs) ? minecraftProfile.javaArgs : LauncherPreferences.PREF_CUSTOM_JAVA_ARGS);
if(Tools.LOCAL_RENDERER.equals("opengles_mobileglues")) {
LauncherPreferences.writeMGRendererSettings();
}
JREUtils.redirectAndPrintJRELog(); JREUtils.redirectAndPrintJRELog();
LauncherProfiles.load(); LauncherProfiles.load();
int requiredJavaVersion = 8; int requiredJavaVersion = 8;