From 1bbf07389c22aa87ad8121232f10bbc9d167def7 Mon Sep 17 00:00:00 2001 From: BetaSteward Date: Mon, 3 Nov 2014 21:45:14 -0500 Subject: [PATCH] preserve decks and backgrounds when upgrading xmage --- src/main/java/com/xmage/launcher/XMageLauncher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/xmage/launcher/XMageLauncher.java b/src/main/java/com/xmage/launcher/XMageLauncher.java index f6f61b9..af4f1ee 100644 --- a/src/main/java/com/xmage/launcher/XMageLauncher.java +++ b/src/main/java/com/xmage/launcher/XMageLauncher.java @@ -50,7 +50,7 @@ public class XMageLauncher implements Runnable { private static final Logger logger = LoggerFactory.getLogger(XMageLauncher.class); - private static final String version = "0.1.0-beta"; + private static final String version = "0.1.1-beta"; private final ResourceBundle messages; private final Locale locale; @@ -552,7 +552,7 @@ private void removeXMageFiles(File xmageFolder) { File[] files = xmageFolder.listFiles(new FilenameFilter() { @Override public boolean accept(final File dir, final String name) { - return !name.matches("images|gameLogs|mageclient\\.log|mageserver\\.log"); + return !name.matches("images|gameLogs|backgrounds|mageclient\\.log|mageserver\\.log|.*\\.dck"); } } ); for (final File file : files) {