mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-28 12:41:25 +08:00
[ue4] Fix version check of binary files.
This commit is contained in:
parent
96d1061374
commit
fbfbb9a3f2
@ -221,7 +221,8 @@ static bool checkBinary(const char *binaryData, int length) {
|
|||||||
BinaryInput input;
|
BinaryInput input;
|
||||||
input.cursor = (const unsigned char *) binaryData;
|
input.cursor = (const unsigned char *) binaryData;
|
||||||
input.end = (const unsigned char *) binaryData + length;
|
input.end = (const unsigned char *) binaryData + length;
|
||||||
SpineExtension::free(readString(&input), __FILE__, __LINE__);
|
// Skip hash
|
||||||
|
input.cursor += 8;
|
||||||
char *version = readString(&input);
|
char *version = readString(&input);
|
||||||
bool result = checkVersion(version);
|
bool result = checkVersion(version);
|
||||||
SpineExtension::free(version, __FILE__, __LINE__);
|
SpineExtension::free(version, __FILE__, __LINE__);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user