mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 06:28:17 +00:00
Fixed GFX path resolving on linux when path has backslashes
This commit is contained in:
@@ -53,6 +53,8 @@ public abstract class AbstractGfxImageTag extends ImageTag {
|
||||
protected BufferedImage getExternalBufferedImage(String fileName, int bitmapFormat) {
|
||||
Path imagePath = null;
|
||||
|
||||
fileName = fileName.replace("\\", "/");
|
||||
|
||||
try {
|
||||
imagePath = getSwf().getFile() == null ? null : Paths.get(getSwf().getFile()).getParent().resolve(Paths.get(fileName));
|
||||
} catch (InvalidPathException ip) {
|
||||
|
||||
Reference in New Issue
Block a user