mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Added CardRepository initialization
This commit is contained in:
parent
505d5c981a
commit
7ea23a1ba1
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue