Skip to content

Commit

Permalink
preserve decks and backgrounds when upgrading xmage
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaSteward committed Nov 4, 2014
1 parent b3344db commit 1bbf073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/xmage/launcher/XMageLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1bbf073

Please sign in to comment.