Some cleanups.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3511 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-04-20 21:48:59 +00:00
parent ee144eb974
commit 00038b69bf
+5 -1
View File
@@ -22,7 +22,6 @@
package com.threerings.jme;
import java.io.File;
import java.util.logging.Level;
import com.samskivert.util.Queue;
import com.samskivert.util.RunQueue;
@@ -195,6 +194,11 @@ public abstract class JmeApp extends AbstractGame
if (!StringUtil.blank(home)) {
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;
}