mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Switch from Gdx.files.local to Gdx.files.absolute
Ensure directories created for data and cache
This commit is contained in:
@@ -54,6 +54,16 @@ public class ForgeProfileProperties {
|
||||
cardPicsDir = cacheDir + "pics/cards/";
|
||||
cardPicsSubDir = new HashMap<String, String>();
|
||||
serverPort = 0;
|
||||
|
||||
//ensure directories exist
|
||||
File dir = new File(userDir);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
dir = new File(cacheDir);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
}
|
||||
|
||||
public ForgeProfileProperties(String filename) {
|
||||
|
||||
Reference in New Issue
Block a user