fixes for issue #994 (wildhouse.zip not found)
This commit is contained in:
parent
b06cf30b2c
commit
b8360100fe
@ -47,9 +47,9 @@ public class TestManyLocators {
|
|||||||
UrlLocator.class);
|
UrlLocator.class);
|
||||||
|
|
||||||
am.registerLocator("town.zip", ZipLocator.class);
|
am.registerLocator("town.zip", ZipLocator.class);
|
||||||
am.registerLocator("http://jmonkeyengine.googlecode.com/files/wildhouse.zip",
|
am.registerLocator(
|
||||||
HttpZipLocator.class);
|
"https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip",
|
||||||
|
HttpZipLocator.class);
|
||||||
|
|
||||||
am.registerLocator("/", ClasspathLocator.class);
|
am.registerLocator("/", ClasspathLocator.class);
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ public class TestManyLocators {
|
|||||||
System.out.println("Found zip image: " + b.toString());
|
System.out.println("Found zip image: " + b.toString());
|
||||||
|
|
||||||
if (c == null)
|
if (c == null)
|
||||||
System.out.println("Failed to load from wildhouse.zip on googlecode.com");
|
System.out.println("Failed to load from wildhouse.zip on googleapis.com");
|
||||||
else
|
else
|
||||||
System.out.println("Found online zip image: " + c.toString());
|
System.out.println("Found online zip image: " + c.toString());
|
||||||
|
|
||||||
|
@ -79,7 +79,9 @@ public class TestMultiplesFilters extends SimpleApplication {
|
|||||||
// create the geometry and attach it
|
// create the geometry and attach it
|
||||||
// load the level from zip or http zip
|
// load the level from zip or http zip
|
||||||
if (useHttp) {
|
if (useHttp) {
|
||||||
assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/wildhouse.zip", HttpZipLocator.class);
|
assetManager.registerLocator(
|
||||||
|
"https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip",
|
||||||
|
HttpZipLocator.class);
|
||||||
} else {
|
} else {
|
||||||
assetManager.registerLocator("wildhouse.zip", ZipLocator.class);
|
assetManager.registerLocator("wildhouse.zip", ZipLocator.class);
|
||||||
}
|
}
|
||||||
|
@ -47,11 +47,13 @@ import java.io.File;
|
|||||||
|
|
||||||
public class TestPostWaterLake extends SimpleApplication {
|
public class TestPostWaterLake extends SimpleApplication {
|
||||||
|
|
||||||
// set default for applets
|
private static boolean useHttp = false;
|
||||||
private static boolean useHttp = true;
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
File file = new File("wildhouse.zip");
|
||||||
|
if (!file.exists()) {
|
||||||
|
useHttp = true;
|
||||||
|
}
|
||||||
TestPostWaterLake app = new TestPostWaterLake();
|
TestPostWaterLake app = new TestPostWaterLake();
|
||||||
app.start();
|
app.start();
|
||||||
}
|
}
|
||||||
@ -74,7 +76,9 @@ public class TestPostWaterLake extends SimpleApplication {
|
|||||||
// create the geometry and attach it
|
// create the geometry and attach it
|
||||||
// load the level from zip or http zip
|
// load the level from zip or http zip
|
||||||
if (useHttp) {
|
if (useHttp) {
|
||||||
assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/wildhouse.zip", HttpZipLocator.class);
|
assetManager.registerLocator(
|
||||||
|
"https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip",
|
||||||
|
HttpZipLocator.class);
|
||||||
} else {
|
} else {
|
||||||
assetManager.registerLocator("wildhouse.zip", ZipLocator.class);
|
assetManager.registerLocator("wildhouse.zip", ZipLocator.class);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user