Auto disable Forge splash screen

This commit is contained in:
Duy Tran Khanh committed 2022-08-12 18:26:38 +07:00
1 parent 7a2550cd45
commit 38c41d65d9
1 file changed
+11
@@ -59,6 +59,17 @@ public class PojavLauncher {
MCOptionUtils.set("overrideHeight", size[1]);
MCOptionUtils.save();
// Setup Forge splash.properties
File forgeSplashFile = new File(Tools.DIR_GAME_NEW, "config/splash.properties");
if (System.getProperty("pojav.internal.keepForgeSplash") == null) {
forgeSplashFile.getParentFile().mkdir();
if (forgeSplashFile.exists()) {
Tools.write(forgeSplashFile.getAbsolutePath(), Tools.read(forgeSplashFile.getAbsolutePath().replace("enabled=true", "enabled=false")));
} else {
Tools.write(forgeSplashFile.getAbsolutePath(), "enabled=false");
}
}
System.setProperty("org.lwjgl.opengl.libname", System.getenv("POJAV_RENDERER"));
System.setProperty("org.lwjgl.vulkan.libname", "libMoltenVK.dylib");