Added isUnpacked(), which lets us know if the bundle is downloaded and
ready to go. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2667 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ResourceBundle.java,v 1.17 2003/06/18 16:54:17 mdb Exp $
|
||||
// $Id: ResourceBundle.java,v 1.18 2003/06/19 01:12:59 ray Exp $
|
||||
|
||||
package com.threerings.resource;
|
||||
|
||||
@@ -69,6 +69,16 @@ public class ResourceBundle
|
||||
return _source;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if the bundle is fully downloaded and successfully
|
||||
* unpacked.
|
||||
*/
|
||||
public boolean isUnpacked ()
|
||||
{
|
||||
return (_source.exists() && (_unpacked != null) &&
|
||||
(_unpacked.lastModified() == _source.lastModified()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Called by the resource manager once it has ensured that our
|
||||
* resource jar file is up to date and ready for reading.
|
||||
|
||||
Reference in New Issue
Block a user