From f0b5f67f1f0e2bb52913e8b5b4c780d7cddcd95b Mon Sep 17 00:00:00 2001 From: Nathan Sweet Date: Mon, 21 Jul 2025 15:39:09 -0400 Subject: [PATCH] [libgdx] Use image and audio paths as is. They are null if empty 4.3.39-beta+. --- .../src/com/esotericsoftware/spine/SkeletonBinary.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java index 7ebaab95b..1a2b55eb4 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java @@ -212,12 +212,8 @@ public class SkeletonBinary extends SkeletonLoader { boolean nonessential = input.readBoolean(); if (nonessential) { skeletonData.fps = input.readFloat(); - skeletonData.imagesPath = input.readString(); - if (skeletonData.imagesPath.isEmpty()) skeletonData.imagesPath = null; - skeletonData.audioPath = input.readString(); - if (skeletonData.audioPath.isEmpty()) skeletonData.audioPath = null; } int n; @@ -1293,7 +1289,7 @@ public class SkeletonBinary extends SkeletonLoader { return index == 0 ? null : strings[index - 1]; } - public String readString () throws IOException { + public @Null String readString () throws IOException { int byteCount = readInt(true); switch (byteCount) { case 0: