Config -> PrefsConfig in appropriate places.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4518 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
package com.threerings.admin.server;
|
package com.threerings.admin.server;
|
||||||
|
|
||||||
import com.samskivert.util.Config;
|
import com.samskivert.util.PrefsConfig;
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -39,12 +39,12 @@ public class PrefsConfigRegistry extends ConfigRegistry
|
|||||||
|
|
||||||
protected class PrefsObjectRecord extends ObjectRecord
|
protected class PrefsObjectRecord extends ObjectRecord
|
||||||
{
|
{
|
||||||
public Config config;
|
public PrefsConfig config;
|
||||||
|
|
||||||
public PrefsObjectRecord (String path, DObject object)
|
public PrefsObjectRecord (String path, DObject object)
|
||||||
{
|
{
|
||||||
super(object);
|
super(object);
|
||||||
this.config = new Config(path);
|
this.config = new PrefsConfig(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean getValue (String field, boolean defval) {
|
protected boolean getValue (String field, boolean defval) {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.client;
|
package com.threerings.presents.client;
|
||||||
|
|
||||||
import com.samskivert.util.Config;
|
import com.samskivert.util.PrefsConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides access to runtime configuration parameters for this package
|
* Provides access to runtime configuration parameters for this package
|
||||||
@@ -31,5 +31,5 @@ public class PresentsPrefs
|
|||||||
{
|
{
|
||||||
/** Used to load our preferences from a properties file and map them
|
/** Used to load our preferences from a properties file and map them
|
||||||
* to the persistent Java preferences repository. */
|
* to the persistent Java preferences repository. */
|
||||||
public static Config config = new Config("rsrc/config/presents");
|
public static PrefsConfig config = new PrefsConfig("rsrc/config/presents");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user