Added CardRepository initialization

This commit is contained in:
North 2012-10-20 17:22:23 +03:00
parent 505d5c981a
commit 7ea23a1ba1
2 changed files with 4 additions and 0 deletions

View file

@ -93,6 +93,7 @@ import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.prefs.Preferences;
import mage.cards.repository.CardScanner;
/**
* @author BetaSteward_at_googlemail.com
@ -974,6 +975,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
});
SwingUtilities.invokeLater(new Runnable() {
public void run() {
CardScanner.scan();
for (String arg : args) {
if (arg.startsWith(liteModeArg)) {
liteMode = true;

View file

@ -3,6 +3,7 @@ package mage.client.deckeditor.collection.viewer;
import mage.client.plugins.impl.Plugins;
import javax.swing.*;
import mage.cards.repository.CardScanner;
import org.mage.card.arcane.ManaSymbols;
/**
@ -12,6 +13,7 @@ public class TestMageBook extends JFrame {
public static void main(String[] args) {
Plugins.getInstance().loadPlugins();
ManaSymbols.loadImages();
CardScanner.scan();
JFrame frame = new TestMageBook();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(new MageBook(null));