Skip to content

Commit

Permalink
Set default locale to US
Browse files Browse the repository at this point in the history
  • Loading branch information
LordMonoxide committed Dec 11, 2024
1 parent 99f64bb commit a491d3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/legend/core/GameEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -265,7 +265,7 @@ public static Set<String> bootMods(final Set<String> modIds) {
final Set<String> 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);
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/legend/game/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a491d3b

Please sign in to comment.