Some cleanups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3511 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -22,7 +22,6 @@
|
|||||||
package com.threerings.jme;
|
package com.threerings.jme;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
import com.samskivert.util.Queue;
|
import com.samskivert.util.Queue;
|
||||||
import com.samskivert.util.RunQueue;
|
import com.samskivert.util.RunQueue;
|
||||||
@@ -195,6 +194,11 @@ public abstract class JmeApp extends AbstractGame
|
|||||||
if (!StringUtil.blank(home)) {
|
if (!StringUtil.blank(home)) {
|
||||||
cfgdir = home + File.separator + cfgdir;
|
cfgdir = home + File.separator + cfgdir;
|
||||||
}
|
}
|
||||||
|
// create the configuration directory if it does not already exist
|
||||||
|
File dir = new File(cfgdir);
|
||||||
|
if (!dir.exists()) {
|
||||||
|
dir.mkdir();
|
||||||
|
}
|
||||||
return cfgdir + File.separator + file;
|
return cfgdir + File.separator + file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user