Skip to content

Commit 01318c0

Browse files
authored
Merge pull request #267 from BJNFNE/detection
add more signatures
2 parents 58651ed + 123a932 commit 01318c0

9 files changed

+91
-5
lines changed

db/Binary/__MiniExtensionsHeuristic_By_DosX.7.sg

+10
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ function main() {
217217
{ ext: ["lvl"], type: "format", name: "Level File", bin: true },
218218
{ ext: ["stb"], type: "format", name: "STB (OGG)", bin: true },
219219
{ ext: ["adbx"], type: "format", name: "AdibouX", bin: true },
220+
{ ext: ["sav"], type: "format", name: "Save", bin: true },
220221
// XPAT formats:
221222
{ ext: ["xcs"], type: "format", name: "XPAT Compiled Script", bin: true },
222223
// Generic formats:
@@ -235,6 +236,13 @@ function main() {
235236
{ ext: ["pup"], type: "format", name: "Playstation Update Package", bin: true },
236237
{ ext: ["mps"], type: "format", name: "Mathematical Programming System", bin: true },
237238
{ ext: ["gzf"], type: "format", name: "Ghidra Zip File", bin: true },
239+
{ ext: ["cue"], type: "format", name: "CUE sheet", bin: false },
240+
{ ext: ["cat"], type: "format", name: "Windows Cabinet File", bin: true },
241+
{ ext: ["sdb"], type: "format", name: "Shim Database", bin: true },
242+
{ ext: ["mof"], type: "format", name: "Managed Object Format", bin: false },
243+
{ ext: ["nls"], type: "format", name: "National Language Support", bin: true },
244+
{ ext: ["sse"], type: "format", name: "Streaming SIMD Extensions", bin: true },
245+
{ ext: ["res"], type: "format", name: "Resource file", bin: true },
238246
// ScummVM formats:
239247
{ ext: ["gob"], type: "format", name: "Config file (extract_gob_stk)", bin: false },
240248
// Director formats:
@@ -244,6 +252,8 @@ function main() {
244252
{ ext: ["cct"], type: "format", name: "Published Shockwave Cast", bin: true },
245253
// 3DS formats:
246254
{ ext: ["cia"], type: "format", name: "CTR Importable Archive", bin: true },
255+
// Amiga formats:
256+
{ ext: ["adf"], type: "format", name: "Amiga Disk File", bin: true },
247257
];
248258

249259
for (var i = 0; i < extensionsDb.length; i++) {

db/Binary/archive.CVM.sg

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Detect It Easy: detection rule file
2+
// Author: BJNFNE <[email protected]>
3+
// This Script supports following formats: CVM
4+
// Used by Playstation 2 games
5+
6+
init("archive", "CVM");
7+
8+
function detect() {
9+
if (Binary.compare("'CVMH'")) {
10+
sVersion = "CRI ROFS";
11+
bDetected = true;
12+
}
13+
14+
return result();
15+
}

db/Binary/archive.HIP.sg

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Detect It Easy: detection rule file
2+
// Author: BJNFNE <[email protected]>
3+
// This Script supports following formats: HIP
4+
// Used by EvilEngine games
5+
6+
init("archive", "HIP");
7+
8+
function detect() {
9+
if (Binary.compare("'HIPA'")) {
10+
sVersion = "HIP archives (HIP/HOP)";
11+
bDetected = true;
12+
}
13+
14+
return result();
15+
}

db/Binary/archive.IFP.sg

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Detect It Easy: detection rule file
2+
// Author: BJNFNE <[email protected]>
3+
// This Script supports following formats: IFP
4+
// Used by Grand Theft Auto San Andreas
5+
6+
init("archive", "IFP");
7+
8+
function detect() {
9+
if (Binary.compare("'ANP3'")) {
10+
sVersion = "Animation file [Version 3]";
11+
bDetected = true;
12+
}
13+
14+
return result();
15+
}

db/Binary/audio.BCSTM.1.sg

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ init("audio", "BCSTM");
77
function detect() {
88
if (Binary.compare("'CSTM'")) {
99
sVersion = "BCSTM Audio Stream";
10-
bDetected = true; // Mark as detected
10+
bDetected = true;
1111
}
1212

13-
return result(); // Return the result of the detection
13+
return result();
1414
}

db/Binary/audio.OGG.sg

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Detect It Easy: detection rule file
2+
// Author: BJNFNE <[email protected]>
3+
// This Script supports following formats: OGG
4+
5+
init("audio", "OGG");
6+
7+
function detect() {
8+
if (Binary.compare("'OggS'")) {
9+
sVersion = "Vorbis";
10+
bDetected = true;
11+
}
12+
13+
return result();
14+
}

db/Binary/bin.COL.1.sg

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Detect It Easy: detection rule file
2+
// Author: BJNFNE <[email protected]>
3+
// This Script supports following formats: COL
4+
// Used by Grand Theft Auto San Andreas
5+
6+
init("format", "COL");
7+
8+
function detect() {
9+
if (Binary.compare("'COL'")) {
10+
sVersion = "Collision Data";
11+
bDetected = true;
12+
}
13+
14+
return result();
15+
}

db/Binary/bin.SHBIN.1.sg

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Detect It Easy: detection rule file
22
// Author: BJNFNE <[email protected]>
3-
// This Script supports following formats: BCSAR
3+
// This Script supports following formats: SHBIN
44

55
init("format", "SHBIN");
66

77
function detect() {
88
if (Binary.compare("'DVLB'")) {
99
sVersion = "Shader Binary";
10-
bDetected = true; // Mark as detected
10+
bDetected = true;
1111
}
1212

13-
return result(); // Return the result of the detection
13+
return result();
1414
}

db/Binary/text.OBC.sg

+2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ function detect() {
1414
bDetected = false;
1515
}
1616

17+
_setLang("Script (Syntax like Java)", bDetected);
18+
1719
return result();
1820
}

0 commit comments

Comments
 (0)