diff --git a/src/as/com/threerings/util/Config.as b/src/as/com/threerings/util/Config.as index a265588a2..f7cdbdaa2 100644 --- a/src/as/com/threerings/util/Config.as +++ b/src/as/com/threerings/util/Config.as @@ -45,6 +45,9 @@ public class Config extends EventDispatcher setPath(path); } + /** + * Set the path, if null then we aren't persisting settings. + */ public function setPath (path :String) :void { _so = (path == null) ? null : SharedObject.getLocal("config_" + path, "/"); @@ -56,6 +59,14 @@ public class Config extends EventDispatcher } } + /** + * Are we persisting settings? + */ + public function isPersisting () :Boolean + { + return (_so != null); + } + /** * Fetches and returns the value for the specified configuration property. */