Skip to content

Commit 33e0696

Browse files
authored
Merge pull request #264 from BJNFNE/3ds
implement new signatures
2 parents 2253522 + f969325 commit 33e0696

7 files changed

+86
-0
lines changed

db/Binary/__MiniExtensionsHeuristic_By_DosX.7.sg

+2
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ function main() {
240240
{ ext: ["cxt"], type: "format", name: "Adobe Director Protected Cast file", bin: true },
241241
{ ext: ["dcr"], type: "format", name: "Published Shockwave Movie", bin: true },
242242
{ ext: ["cct"], type: "format", name: "Published Shockwave Cast", bin: true },
243+
// 3DS formats:
244+
{ ext: ["cia"], type: "format", name: "CTR Importable Archive", bin: true },
243245
];
244246

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

db/Binary/archive.BCSAR.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: BCSAR
4+
5+
init("archive", "BCSAR");
6+
7+
function detect() {
8+
if (Binary.compare("'CSAR'")) { // Use contains instead of compare
9+
sVersion = "Binary CTR Sound Archive"; // Set version if detected
10+
bDetected = true; // Mark as detected
11+
}
12+
13+
return result(); // Return the result of the detection
14+
}

db/Binary/audio.BCSTM.1.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: BCSTM
4+
5+
init("audio", "BCSTM");
6+
7+
function detect() {
8+
if (Binary.compare("'CSTM'")) { // Use contains instead of compare
9+
sVersion = "BCSTM Audio Stream"; // Set version if detected
10+
bDetected = true; // Mark as detected
11+
}
12+
13+
return result(); // Return the result of the detection
14+
}

db/Binary/bin.SHBIN.1.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: BCSAR
4+
5+
init("format", "SHBIN");
6+
7+
function detect() {
8+
if (Binary.compare("'DVLB'")) { // Use contains instead of compare
9+
sVersion = "Shader Binary"; // Set version if detected
10+
bDetected = true; // Mark as detected
11+
}
12+
13+
return result(); // Return the result of the detection
14+
}

db/Binary/font.BTF.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: BTF
4+
5+
init("font", "BTF");
6+
7+
function detect() {
8+
if (Binary.compare("'TNFB'")) { // Use contains instead of compare
9+
sVersion = "Font"; // Set version if detected
10+
bDetected = true; // Mark as detected
11+
}
12+
13+
return result(); // Return the result of the detection
14+
}

db/Binary/font.VTF.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: VTF
4+
5+
init("font", "VTF");
6+
7+
function detect() {
8+
if (Binary.compare("'TNFV'")) { // Use contains instead of compare
9+
sVersion = "Font"; // Set version if detected
10+
bDetected = true; // Mark as detected
11+
}
12+
13+
return result(); // Return the result of the detection
14+
}

db/Binary/image.ICN.1.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: ICN
4+
5+
init("image", "ICN");
6+
7+
function detect() {
8+
if (Binary.compare("'SMDH'")) { // Use contains instead of compare
9+
sVersion = "Icon"; // Set version if detected
10+
bDetected = true; // Mark as detected
11+
}
12+
13+
return result(); // Return the result of the detection
14+
}

0 commit comments

Comments
 (0)