From ec9e593ed283e2cace6da7d6da2182be838beadd Mon Sep 17 00:00:00 2001 From: Christopher Schnick Date: Wed, 6 Jan 2021 10:58:39 +0100 Subject: [PATCH] Improve error msg for very old savegames --- .../pdx_unlimiter/core/savegame/Eu4SavegameParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/crschnick/pdx_unlimiter/core/savegame/Eu4SavegameParser.java b/core/src/main/java/com/crschnick/pdx_unlimiter/core/savegame/Eu4SavegameParser.java index a7b007c3..be6a9397 100644 --- a/core/src/main/java/com/crschnick/pdx_unlimiter/core/savegame/Eu4SavegameParser.java +++ b/core/src/main/java/com/crschnick/pdx_unlimiter/core/savegame/Eu4SavegameParser.java @@ -32,7 +32,8 @@ public boolean isBinaryFormat(byte[] content) throws Exception { zipFile.closeEntry(); } zipFile.close(); - return false; + throw new SavegameParseException("Gamestate not found in savegame. " + + "This might be a very old savegame, which is not supported"); } @Override