From a45c8fa579fdf0d2be48c02428b792309808f242 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 4 Sep 2022 22:54:21 +0600 Subject: file handle вместо обычной строчки MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/com/ilotterytea/maxoning/MaxonGame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/com/ilotterytea/maxoning') diff --git a/core/src/com/ilotterytea/maxoning/MaxonGame.java b/core/src/com/ilotterytea/maxoning/MaxonGame.java index e4ba66e..5c9af2b 100644 --- a/core/src/com/ilotterytea/maxoning/MaxonGame.java +++ b/core/src/com/ilotterytea/maxoning/MaxonGame.java @@ -34,7 +34,7 @@ public class MaxonGame extends Game { batch = new SpriteBatch(); shapeRenderer = new ShapeRenderer(); prefs = Gdx.app.getPreferences("Maxoning"); - locale = new I18N(prefs.getString("lang", "en_us")); + locale = new I18N(Gdx.files.internal("i18n/" + prefs.getString("lang", "en_us") + ".json")); if (!GameDataSystem.exists()) { try { -- cgit v1.2.3