diff --git a/src/main/java/legend/core/GameEngine.java b/src/main/java/legend/core/GameEngine.java index 2cf488539..266a2f872 100644 --- a/src/main/java/legend/core/GameEngine.java +++ b/src/main/java/legend/core/GameEngine.java @@ -17,6 +17,7 @@ import legend.core.opengl.fonts.TextStream; import legend.core.spu.Spu; import legend.game.EngineStateEnum; +import legend.game.Main; import legend.game.Scus94491BpeSegment_8002; import legend.game.fmv.Fmv; import legend.game.input.Input; @@ -50,7 +51,6 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; -import java.util.Locale; import java.util.Set; import static legend.game.SItem.albertXpTable_801138c0; @@ -265,7 +265,7 @@ public static Set bootMods(final Set modIds) { final Set missingMods = MOD_ACCESS.loadMods(modIds); // Initialize language - LANG_ACCESS.initialize(MODS, Locale.getDefault()); + LANG_ACCESS.initialize(MODS, Main.ORIGINAL_LOCALE); // Initialize event bus and find all event handlers EVENT_ACCESS.initialize(MODS); diff --git a/src/main/java/legend/game/Main.java b/src/main/java/legend/game/Main.java index a1d9a2160..cac406b47 100644 --- a/src/main/java/legend/game/Main.java +++ b/src/main/java/legend/game/Main.java @@ -7,12 +7,17 @@ import java.util.ArrayList; import java.util.List; +import java.util.Locale; import java.util.Scanner; public final class Main { + public static final Locale ORIGINAL_LOCALE = Locale.getDefault(); + static { System.setProperty("log4j.skipJansi", "false"); System.setProperty("log4j2.configurationFile", "log4j2.xml"); + + Locale.setDefault(Locale.US); } private static final Logger LOGGER = LogManager.getFormatterLogger(Main.class);