|
|
@ -104,12 +104,18 @@ public class ProjectAssetManager extends DesktopAssetManager { |
|
|
|
String prefix = getAssetFolderName(); |
|
|
|
String prefix = getAssetFolderName(); |
|
|
|
int idx = absolutePath.indexOf(prefix); |
|
|
|
int idx = absolutePath.indexOf(prefix); |
|
|
|
if (idx == 0) { |
|
|
|
if (idx == 0) { |
|
|
|
System.out.println("absolute/prefix:"+absolutePath+" / "+prefix); |
|
|
|
return stripFirstSlash(absolutePath.substring(prefix.length())); |
|
|
|
return absolutePath.substring(prefix.length() + 1); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return absolutePath; |
|
|
|
return absolutePath; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String stripFirstSlash(String input) { |
|
|
|
|
|
|
|
if (input.startsWith("/")) { |
|
|
|
|
|
|
|
return input.substring(1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return input; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Deprecated |
|
|
|
@Deprecated |
|
|
|
public AssetManager getManager() { |
|
|
|
public AssetManager getManager() { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|