mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
fix card images displaying in linux
This commit is contained in:
parent
2b44ff0d69
commit
b223d83be5
2 changed files with 6 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue