fix for issue #982: add town.zip file to repo, load different HTTP image

This commit is contained in:
Stephen Gold 2019-01-06 19:05:51 -08:00
parent 657dc75abf
commit 594834f996
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ public class TestManyLocators {
public static void main(String[] args){
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);
am.registerLocator("town.zip", ZipLocator.class);
@ -65,7 +65,7 @@ public class TestManyLocators {
AssetInfo c = am.locateAsset(new ModelKey("glasstile2.png"));
// 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)
System.out.println("Failed to load from classpath");
@ -73,7 +73,7 @@ public class TestManyLocators {
System.out.println("Found classpath font: " + a.toString());
if (b == null)
System.out.println("Failed to load from town.zip");
System.out.println("Failed to load from town.zip file");
else
System.out.println("Found zip image: " + b.toString());

BIN
jme3-examples/town.zip Normal file

Binary file not shown.