Merge pull request #287 from riccardobl/master
Fix for ZipLocator and path with the root slash
This commit is contained in:
commit
6312f1a813
@ -82,6 +82,7 @@ public class ZipLocator implements AssetLocator {
|
||||
|
||||
public AssetInfo locate(AssetManager manager, AssetKey key) {
|
||||
String name = key.getName();
|
||||
if(name.startsWith("/"))name=name.substring(1);
|
||||
ZipEntry entry = zipfile.getEntry(name);
|
||||
if (entry == null)
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user