Support for local Magarena data folder.
parent
a80bda8c12
commit
3277195739
|
@ -28,17 +28,18 @@ Recommended difficulty level for the best balance of AI speed and strength is th
|
|||
|
||||
Have fun!
|
||||
|
||||
Release 1.9 (March, 2011)
|
||||
Release 1.9 (March 22, 2011)
|
||||
===========
|
||||
|
||||
- ubeefx cube (540 cards)
|
||||
- singularita cube (860 cards)
|
||||
- ubeefx cube (542 cards)
|
||||
- singularita cube (862 cards)
|
||||
|
||||
- added extra settings to themes
|
||||
- when a folder Magarena is present in the same folder as where Magarena is started, that is used as the Magarena data folder
|
||||
- added extra settings to themes (see customizing Wiki page)
|
||||
- added support for infect keyword and poison counters
|
||||
|
||||
- fixed Solemn Offering, it can now target your own permanents with filter legal targets enabled
|
||||
- fixed handing of invalid avatars
|
||||
- fixed handling of invalid avatars
|
||||
|
||||
Release 1.8 (March 13, 2011)
|
||||
===========
|
||||
|
|
|
@ -18,7 +18,19 @@ public class MagicMain {
|
|||
|
||||
private static final String GAME_PATH="Magarena";
|
||||
private static final String MODS_PATH="mods";
|
||||
|
||||
|
||||
private static final String gamePath;
|
||||
|
||||
static {
|
||||
final File dataDirFile=new File(System.getProperty("user.dir"),GAME_PATH);
|
||||
if (dataDirFile.exists()&&dataDirFile.isDirectory()) {
|
||||
gamePath=dataDirFile.toString();
|
||||
} else {
|
||||
gamePath=System.getProperty("user.home")+File.separatorChar+GAME_PATH;
|
||||
}
|
||||
System.out.println("Data folder : "+gamePath);
|
||||
}
|
||||
|
||||
public static void main(String args[]) {
|
||||
|
||||
initializeCards();
|
||||
|
@ -27,7 +39,7 @@ public class MagicMain {
|
|||
|
||||
public static String getGamePath() {
|
||||
|
||||
return System.getProperty("user.home")+File.separatorChar+GAME_PATH;
|
||||
return gamePath;
|
||||
}
|
||||
|
||||
public static String getModsPath() {
|
||||
|
|
Loading…
Reference in New Issue