diff --git a/backends/backend-teavm/src/main/java/com/github/xpenatan/gdx/backends/teavm/config/AssetFileHandle.java b/backends/backend-teavm/src/main/java/com/github/xpenatan/gdx/backends/teavm/config/AssetFileHandle.java index 18653090..f1cfa064 100644 --- a/backends/backend-teavm/src/main/java/com/github/xpenatan/gdx/backends/teavm/config/AssetFileHandle.java +++ b/backends/backend-teavm/src/main/java/com/github/xpenatan/gdx/backends/teavm/config/AssetFileHandle.java @@ -12,17 +12,13 @@ public class AssetFileHandle extends FileHandle { public AssetFilter filter; public static AssetFileHandle createHandle(String fileName, FileType type) { - return new AssetFileHandle(fileName, type, type); + return new AssetFileHandle(fileName, FileType.Absolute, type); } - public static AssetFileHandle createCopyHandle(File file, FileType type) { + public static AssetFileHandle createHandle(File file, FileType type) { return new AssetFileHandle(file, FileType.Absolute, type); } - public static AssetFileHandle createCopyHandle(String fileName, FileType type) { - return new AssetFileHandle(fileName, FileType.Absolute, type); - } - public static AssetFileHandle createCopyHandle(String fileName, FileType type, String assetsChildDir) { return createCopyHandle(fileName, type, assetsChildDir, null); } diff --git a/backends/backend-teavm/src/main/java/com/github/xpenatan/gdx/backends/teavm/config/AssetsCopy.java b/backends/backend-teavm/src/main/java/com/github/xpenatan/gdx/backends/teavm/config/AssetsCopy.java index 9749d085..bea12430 100644 --- a/backends/backend-teavm/src/main/java/com/github/xpenatan/gdx/backends/teavm/config/AssetsCopy.java +++ b/backends/backend-teavm/src/main/java/com/github/xpenatan/gdx/backends/teavm/config/AssetsCopy.java @@ -110,7 +110,7 @@ private static ArrayList copy(TeaClassLoader classloader, List cl dest.write(is, false); String destPath = dest.path(); if(!destPath.endsWith(".js") && !destPath.endsWith(".wasm")) { - AssetFileHandle dest2 = AssetFileHandle.createCopyHandle(dest.file(), FileType.Classpath); + AssetFileHandle dest2 = AssetFileHandle.createHandle(dest.file(), FileType.Classpath); assets.add(new Asset(dest2, getType(destPath), op)); } is.close(); @@ -287,7 +287,7 @@ private static void copyDirectory(FileHandle sourceDir, FileHandle destDir, Asse FileHandle srcFile = files[i]; FileHandle destFile1 = destDir.child(srcFile.name()); // Destination type is copied from source type - FileHandle destFile = AssetFileHandle.createCopyHandle(destFile1.file(), srcFile.type()); + FileHandle destFile = AssetFileHandle.createHandle(destFile1.file(), srcFile.type()); if(srcFile.isDirectory()) { AssetFilterOption op = new AssetFilterOption(); if(!filter.accept(destPath, true, op)) continue;