From 897ed1b19e4a6412a4a3eaf7d00c46af6f305343 Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 29 Oct 2018 16:29:59 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B0=D0=B2=D1=82=D0=BE=D0=BE=D0=B1?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B0?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/ru/gravit/launcher/client/LauncherSettings.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/LauncherSettings.java b/Launcher/src/main/java/ru/gravit/launcher/client/LauncherSettings.java index 77d3ccbe..b0a0a51b 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/LauncherSettings.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/LauncherSettings.java @@ -21,7 +21,7 @@ import java.util.Map; public class LauncherSettings { - public static int settingsMagic = 0xc0de5; + public static int settingsMagic = 0xc0de6; @LauncherAPI public Path file = DirBridge.dir.resolve("settings.bin"); @LauncherAPI @@ -78,7 +78,10 @@ public void read(HInput input) throws IOException, SignatureException { int magic = input.readInt(); if (magic != settingsMagic) { - throw new java.io.IOException("Settings magic mismatch: " + java.lang.Integer.toString(magic, 16)); + setDefault(); + LogHelper.warning("Settings magic mismatch: " + java.lang.Integer.toString(magic, 16)); + return; + //throw new java.io.IOException(); } // Launcher settings