Skip to content

Commit 674debd

Browse files
authored
Merge pull request #262 from BJNFNE/formats
add new formats
2 parents 1e632ac + feabdf5 commit 674debd

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

db/Binary/audio.PAT.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: PAT
4+
5+
init("audio", "PAT");
6+
7+
function detect() {
8+
if (Binary.compare("'PT'")) { // Use contains instead of compare
9+
sVersion = "Audio"; // 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.FSH.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: FSH
4+
5+
init("image", "FSH");
6+
7+
function detect() {
8+
if (Binary.compare("'SHPI'")) { // Use contains instead of compare
9+
sVersion = "Image"; // 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)