Differentiate between dynamic resource URLs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2842 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ResourceManager.java,v 1.36 2003/09/24 23:54:59 mdb Exp $
|
// $Id: ResourceManager.java,v 1.37 2003/10/27 11:43:26 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.resource;
|
package com.threerings.resource;
|
||||||
|
|
||||||
@@ -352,7 +352,7 @@ public class ResourceManager
|
|||||||
*/
|
*/
|
||||||
public boolean checkDynamicBundle (String path)
|
public boolean checkDynamicBundle (String path)
|
||||||
{
|
{
|
||||||
return createResourceBundle(DYNAMIC_BUNDLE_SET, path).isUnpacked();
|
return createResourceBundle(_dnset, path).isUnpacked();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -370,8 +370,10 @@ public class ResourceManager
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final ResourceBundle bundle = createResourceBundle(
|
// note our dynamic bundle set
|
||||||
DYNAMIC_BUNDLE_SET, path);
|
_dnset = DYNAMIC_BUNDLE_SET + StringUtil.md5hex(_drurl.toString());
|
||||||
|
|
||||||
|
final ResourceBundle bundle = createResourceBundle(_dnset, path);
|
||||||
if (bundle.isUnpacked()) {
|
if (bundle.isUnpacked()) {
|
||||||
if (bundle.sourceIsReady()) {
|
if (bundle.sourceIsReady()) {
|
||||||
listener.requestCompleted(bundle);
|
listener.requestCompleted(bundle);
|
||||||
@@ -860,6 +862,10 @@ public class ResourceManager
|
|||||||
/** The url via which we download our dynamically generated bundles. */
|
/** The url via which we download our dynamically generated bundles. */
|
||||||
protected URL _drurl;
|
protected URL _drurl;
|
||||||
|
|
||||||
|
/** The resource set we use for dynamic resources from a particular
|
||||||
|
* dynamic bundle URL. */
|
||||||
|
protected String _dnset;
|
||||||
|
|
||||||
/** The prefix we prepend to resource paths before attempting to load
|
/** The prefix we prepend to resource paths before attempting to load
|
||||||
* them from the classpath. */
|
* them from the classpath. */
|
||||||
protected String _rootPath;
|
protected String _rootPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user