mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 21:29:07 +08:00
[libgdx] Use image and audio paths as is.
They are null if empty 4.3.39-beta+.
This commit is contained in:
parent
25bd863549
commit
f0b5f67f1f
@ -212,12 +212,8 @@ public class SkeletonBinary extends SkeletonLoader {
|
|||||||
boolean nonessential = input.readBoolean();
|
boolean nonessential = input.readBoolean();
|
||||||
if (nonessential) {
|
if (nonessential) {
|
||||||
skeletonData.fps = input.readFloat();
|
skeletonData.fps = input.readFloat();
|
||||||
|
|
||||||
skeletonData.imagesPath = input.readString();
|
skeletonData.imagesPath = input.readString();
|
||||||
if (skeletonData.imagesPath.isEmpty()) skeletonData.imagesPath = null;
|
|
||||||
|
|
||||||
skeletonData.audioPath = input.readString();
|
skeletonData.audioPath = input.readString();
|
||||||
if (skeletonData.audioPath.isEmpty()) skeletonData.audioPath = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int n;
|
int n;
|
||||||
@ -1293,7 +1289,7 @@ public class SkeletonBinary extends SkeletonLoader {
|
|||||||
return index == 0 ? null : strings[index - 1];
|
return index == 0 ? null : strings[index - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
public String readString () throws IOException {
|
public @Null String readString () throws IOException {
|
||||||
int byteCount = readInt(true);
|
int byteCount = readInt(true);
|
||||||
switch (byteCount) {
|
switch (byteCount) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user