Merge pull request #164 from alexytomi/add/sodium-warning

add: Sodium warning to log
This commit is contained in:
alexytomi
2025-12-29 04:20:49 +08:00
committed by GitHub

View File

@@ -2,6 +2,7 @@ package net.kdt.pojavlaunch;
import static net.kdt.pojavlaunch.Tools.currentDisplayMetrics;
import static net.kdt.pojavlaunch.Tools.dialogForceClose;
import static net.kdt.pojavlaunch.Tools.hasMods;
import static net.kdt.pojavlaunch.Tools.runMethodbyReflection;
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_ENABLE_GYRO;
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_SUSTAINED_PERFORMANCE;
@@ -460,6 +461,8 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
} catch (NumberFormatException e) { folder.mkdir(); }
MinecraftAccount minecraftAccount = PojavProfile.getCurrentProfileContent(this, null);
if (hasMods("sodium"))
Logger.appendToLog("WARNING: Sodium is being used, Amethyst-Android does NOT support this mod, you are on your own");
Logger.appendToLog("--------- Starting game with Launcher Debug!");
Tools.printLauncherInfo(versionId, Tools.isValidString(minecraftProfile.javaArgs) ? minecraftProfile.javaArgs : LauncherPreferences.PREF_CUSTOM_JAVA_ARGS);
if(Tools.LOCAL_RENDERER.equals("opengles_mobileglues")) {