@@ -0,0 +1,1133 @@
+%0Apackage com.badlogic.gdx.assets.loaders.resolvers;%0A%0Aimport com.badlogic.gdx.assets.loaders.FileHandleResolver;%0Aimport com.badlogic.gdx.files.FileHandle;%0A%0A/** %7B@link FileHandleResolver%7D that adds a prefix to the filename before passing it to the base resolver. Can be used e.g. to use a%0A * given subfolder from the base resolver. The prefix is added as is, you have to include any trailing '/' character if needed.%0A * @author Xoppa */%0Apublic class PrefixFileHandleResolver implements FileHandleResolver %7B%0A%09private String prefix;%0A%09private FileHandleResolver baseResolver;%0A%09%0A%09public PrefixFileHandleResolver(FileHandleResolver baseResolver, String prefix) %7B%0A%09%09this.baseResolver = baseResolver;%0A%09%09this.prefix = prefix;%0A%09%7D%0A%09%0A%09public void setBaseResolver(FileHandleResolver baseResolver) %7B%0A%09%09this.baseResolver = baseResolver;%0A%09%7D%0A%09%0A%09public FileHandleResolver getBaseResolver() %7B%0A%09%09return baseResolver;%0A%09%7D%0A%0A%09public void setPrefix (String prefix) %7B%0A%09%09this.prefix = prefix;%0A%09%7D%0A%0A%09public String getPrefix () %7B%0A%09%09return prefix;%0A%09%7D%0A%0A%09@Override%0A%09public FileHandle resolve (String fileName) %7B%0A%09%09return baseResolver.resolve(prefix + fileName);%0A%09%7D%0A%7D%0A

Add PrefixFileHandleResolver