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:
@@ -45,6 +45,9 @@ public class Config extends EventDispatcher
|
|||||||
setPath(path);
|
setPath(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the path, if null then we aren't persisting settings.
|
||||||
|
*/
|
||||||
public function setPath (path :String) :void
|
public function setPath (path :String) :void
|
||||||
{
|
{
|
||||||
_so = (path == null) ? null : SharedObject.getLocal("config_" + path, "/");
|
_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.
|
* Fetches and returns the value for the specified configuration property.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user