fix card images displaying in linux

This commit is contained in:
Loki 2010-11-03 13:23:23 +00:00
parent 2b44ff0d69
commit b223d83be5
2 changed files with 6 additions and 5 deletions

View file

@ -87,10 +87,10 @@ public class Config {
File test = new File(cardsResourcePath);
if (test.isDirectory()) {
useResource = false;
frameResourcePath = cardsResourcePath + "Frame\\";
powerboxResourcePath = cardsResourcePath + "PowerBox\\";
cardArtResourcePath = cardsResourcePath + "Pics\\";
setIconsResourcePath = cardsResourcePath + "Icon\\";
frameResourcePath = cardsResourcePath + "Frame" + File.separator;
powerboxResourcePath = cardsResourcePath + "PowerBox" + File.separator;
cardArtResourcePath = cardsResourcePath + "Pics" + File.separator;
setIconsResourcePath = cardsResourcePath + "Icon" + File.separator;
symbolsResourcePath = p.getProperty("symbols-resource-path");
}
else {

View file

@ -30,6 +30,7 @@ package mage.client.util;
import static mage.constants.Constants.*;
import java.awt.image.BufferedImage;
import java.io.File;
/**
*
@ -62,7 +63,7 @@ public class Frames {
public static BufferedImage Swamp = ImageHelper.loadImage(Config.frameResourcePath + "8 land mana black.png", FRAME_MAX_WIDTH, FRAME_MAX_HEIGHT);
public static BufferedImage Land = ImageHelper.loadImage(Config.frameResourcePath + "8 multiland nomana colorless.png", FRAME_MAX_WIDTH, FRAME_MAX_HEIGHT);
public static BufferedImage Effect = ImageHelper.loadImage(Config.frameResourcePath + "Effects\\effect0.png", FRAME_MAX_WIDTH, FRAME_MAX_HEIGHT);
public static BufferedImage Effect = ImageHelper.loadImage(Config.frameResourcePath + "Effects" + File.separator +"effect0.png", FRAME_MAX_WIDTH, FRAME_MAX_HEIGHT);
public static BufferedImage PowBoxLeft = ImageHelper.loadImage(Config.powerboxResourcePath + "graphic_card_powerbox_a_left.png");
public static BufferedImage PowBoxMid = ImageHelper.loadImage(Config.powerboxResourcePath + "graphic_card_powerbox_a_middle.png");