Skip to content

Commit a72745f

Browse files
committed
refactor XCS signature
1 parent 7b366be commit a72745f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

db/Binary/text.XCS.1.sg renamed to db/Binary/bin.XCS.1.sg

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
// Author: BJNFNE <[email protected]>
33

44
// https://wiki.multimedia.cx/index.php/Engines/XPAT#XCS
5-
meta("source", "XCS");
5+
meta("format", "XPAT Compiled Script (.XCS)");
66

77
function detect() {
88
if (Binary.compare("58 43 53")) {
9-
sName = "XPAT Compiled Script";
10-
bDetected = true;
11-
}
9+
var platform = Binary.getString(4, 2).trim();
1210

11+
if (/^[A-Z]{2}$/.test(platform)) {
12+
sVersion = platform;
13+
bDetected = true;
14+
}
15+
}
1316
return result();
1417
}

0 commit comments

Comments
 (0)