-
-
Save MobiDevelop/bf6aad209256f6eb65d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.preloader.gen; | |
import com.badlogic.gdx.backends.gwt.preloader.DefaultAssetFilter; | |
public class ExampleAssetFilter extends DefaultAssetFilter { | |
@Override | |
public String getBundleName (String file) { | |
file = file.replace('\\', '/'); | |
if (file.contains("data/levels/")) { | |
file = file.substring(file.indexOf("data/levels/") + "data/levels/".length()); | |
String bundle = file; | |
if (file.contains("/")) { | |
bundle = file.substring(0, file.indexOf("/")); | |
} | |
return bundle; | |
} | |
return super.getBundleName(file); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment