fix for issue #982: add town.zip file to repo, load different HTTP image
This commit is contained in:
parent
657dc75abf
commit
594834f996
@ -43,7 +43,7 @@ public class TestManyLocators {
|
|||||||
public static void main(String[] args){
|
public static void main(String[] args){
|
||||||
AssetManager am = JmeSystem.newAssetManager();
|
AssetManager am = JmeSystem.newAssetManager();
|
||||||
|
|
||||||
am.registerLocator("http://www.jmonkeyengine.com/wp-content/uploads/2010/09/",
|
am.registerLocator("http://wiki.jmonkeyengine.org/jme3/beginner",
|
||||||
UrlLocator.class);
|
UrlLocator.class);
|
||||||
|
|
||||||
am.registerLocator("town.zip", ZipLocator.class);
|
am.registerLocator("town.zip", ZipLocator.class);
|
||||||
@ -65,7 +65,7 @@ public class TestManyLocators {
|
|||||||
AssetInfo c = am.locateAsset(new ModelKey("glasstile2.png"));
|
AssetInfo c = am.locateAsset(new ModelKey("glasstile2.png"));
|
||||||
|
|
||||||
// Try loading directly from HTTP
|
// Try loading directly from HTTP
|
||||||
AssetInfo d = am.locateAsset(new TextureKey("planet-2.jpg"));
|
AssetInfo d = am.locateAsset(new TextureKey("beginner-physics.png"));
|
||||||
|
|
||||||
if (a == null)
|
if (a == null)
|
||||||
System.out.println("Failed to load from classpath");
|
System.out.println("Failed to load from classpath");
|
||||||
@ -73,7 +73,7 @@ public class TestManyLocators {
|
|||||||
System.out.println("Found classpath font: " + a.toString());
|
System.out.println("Found classpath font: " + a.toString());
|
||||||
|
|
||||||
if (b == null)
|
if (b == null)
|
||||||
System.out.println("Failed to load from town.zip");
|
System.out.println("Failed to load from town.zip file");
|
||||||
else
|
else
|
||||||
System.out.println("Found zip image: " + b.toString());
|
System.out.println("Found zip image: " + b.toString());
|
||||||
|
|
||||||
|
BIN
jme3-examples/town.zip
Normal file
BIN
jme3-examples/town.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user