Skip to content

Commit

Permalink
Small resource fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed May 16, 2024
1 parent 405b1f1 commit 1cb2282
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,22 @@ public static List<String> getResources(ArrayList<URL> acceptedURL) {
boolean accept = false;
for(TeaVMResourceProperties properties : propertiesList) {
ignoreResources.addAll(properties.ignorePath);
// Accept if properties exist in current path
if(path.contains(properties.path)) {
accept = true;
break;
}
if(!accept) {
for(String additionalPath : properties.additionalPath) {
if(path.contains(additionalPath)) {
accept = true;
break;
}
}
if(accept) {
for(String additionalPath : properties.additionalPath) {
// Check if the jar path contains in properties
if(path.contains(additionalPath)) {
accept = true;
break;
}
}

if(accept) {
break;
}
}
if(accept) {
URI uri = URI.create("jar:file:" + path);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
resources=com.badlogicgames.gdx/gdx/
resources=build/libs/gdx-
resources=com.github.mgsx-dev.gdx-gltf/gltf/
ignore-resources=startup-logo.png

0 comments on commit 1cb2282

Please sign in to comment.