mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 18:48:44 +08:00
[sfml] Fix testbed file format check.
This commit is contained in:
parent
4749175aeb
commit
0e78a496e5
@ -40,7 +40,7 @@ int main(void) {
|
||||
SFMLTextureLoader textureLoader;
|
||||
Atlas *atlas = new Atlas(atlasFile, &textureLoader);
|
||||
SkeletonData *skeletonData = nullptr;
|
||||
if (strncmp(skeletonFile.buffer(), ".skel", skeletonFile.length()) > 0) {
|
||||
if (strnstr(skeletonFile.buffer(), ".skel", skeletonFile.length())) {
|
||||
SkeletonBinary binary(atlas);
|
||||
binary.setScale(scale);
|
||||
skeletonData = binary.readSkeletonDataFile(skeletonFile);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user