Allow whether we're persisting to be queried.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5672 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-02-25 04:39:56 +00:00
parent 63181c6fc1
commit ad09bec805
+11
View File
@@ -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.
*/