Skip to content

Commit 8e69deb

Browse files
committed
First the name is written, then the format information
1 parent 6e7cb93 commit 8e69deb

13 files changed

+23
-34
lines changed

db/Binary/archive.BCSAR.sg

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Author: BJNFNE <[email protected]>
33
// This Script supports following formats: BCSAR
44

5-
init("archive", "BCSAR");
5+
init("archive", "CTR Sound Archive");
66

77
function detect() {
88
if (Binary.compare("'CSAR'")) {
9-
sVersion = "Binary CTR Sound Archive";
9+
sVersion = "BCSAR";
1010
bDetected = true;
1111
}
1212

db/Binary/archive.CVM.sg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Detect It Easy: detection rule file
22
// Author: BJNFNE <[email protected]>
33
// This Script supports following formats: CVM
4-
// Used by Playstation 2 games
4+
// Used by PlayStation 2 games
55

66
init("archive", "CVM");
77

db/Binary/archive.HIP.sg

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// This Script supports following formats: HIP
44
// Used by EvilEngine games
55

6-
init("archive", "HIP");
6+
init("archive", "HIP archive");
77

88
function detect() {
99
if (Binary.compare("'HIPA'")) {
10-
sVersion = "HIP archives (HIP/HOP)";
10+
sVersion = "HIP/HOP";
1111
bDetected = true;
1212
}
1313

db/Binary/archive.IFP.sg

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// This Script supports following formats: IFP
44
// Used by Grand Theft Auto San Andreas
55

6-
init("archive", "IFP");
6+
init("archive", "Animation file");
77

88
function detect() {
99
if (Binary.compare("'ANP3'")) {
10-
sVersion = "Animation file [Version 3]";
10+
sVersion = "3";
1111
bDetected = true;
1212
}
1313

db/Binary/archive.JAM.sg

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
init("archive", "JAM");
77

88
function detect() {
9-
if (Binary.compare("'LJAM'")) {
10-
bDetected = true;
11-
}
9+
bDetected = Binary.compare("'LJAM'");
1210

1311
return result();
1412
}

db/Binary/audio.BCSTM.1.sg

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Author: BJNFNE <[email protected]>
33
// This Script supports following formats: BCSTM
44

5-
init("audio", "BCSTM");
5+
init("audio", "BCSTM Audio Stream");
66

77
function detect() {
88
if (Binary.compare("'CSTM'")) {
9-
sVersion = "BCSTM Audio Stream";
9+
sVersion = "BCSTM";
1010
bDetected = true;
1111
}
1212

db/Binary/audio.OGG.sg

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Author: BJNFNE <[email protected]>
33
// This Script supports following formats: OGG
44

5-
init("audio", "OGG");
5+
init("audio", "Vorbis");
66

77
function detect() {
88
if (Binary.compare("'OggS'")) {
9-
sVersion = "Vorbis";
9+
sVersion = "OGG";
1010
bDetected = true;
1111
}
1212

db/Binary/bin.COL.1.sg

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
// This Script supports following formats: COL
44
// Used by Grand Theft Auto San Andreas
55

6-
init("format", "COL");
6+
init("format", "Collision Data");
77

88
function detect() {
9-
if (Binary.compare("'COL'")) {
10-
sVersion = "Collision Data";
11-
bDetected = true;
12-
}
9+
bDetected = Binary.compare("'COL'");
1310

1411
return result();
1512
}

db/Binary/bin.SHBIN.1.sg

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Author: BJNFNE <[email protected]>
33
// This Script supports following formats: SHBIN
44

5-
init("format", "SHBIN");
5+
init("format", "Shader Data");
66

77
function detect() {
88
if (Binary.compare("'DVLB'")) {
9-
sVersion = "Shader Binary";
9+
sVersion = "SHBIN";
1010
bDetected = true;
1111
}
1212

db/Binary/bin.W3D.1.sg

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

5-
init("format", "W3D");
5+
init("format", "Shockwave 3D");
66

77
function detect() {
88
if (Binary.compare("'IFX'")) {
9-
sVersion = "Shockwave 3D";
9+
sVersion = "W3D";
1010
bDetected = true;
1111
}
1212

db/Binary/font.BTF.sg

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
init("font", "BTF");
66

77
function detect() {
8-
if (Binary.compare("'TNFB'")) {
9-
sVersion = "Font";
10-
bDetected = true;
11-
}
8+
bDetected = Binary.compare("'TNFB'");
129

1310
return result();
1411
}

db/Binary/font.VTF.sg

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
init("font", "VTF");
66

77
function detect() {
8-
if (Binary.compare("'TNFV'")) {
9-
sVersion = "Font";
10-
bDetected = true;
11-
}
8+
bDetected = Binary.compare("'TNFV'");
129

1310
return result();
1411
}

db/Binary/image.ICN.1.sg

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Author: BJNFNE <[email protected]>
33
// This Script supports following formats: ICN
44

5-
init("image", "ICN");
5+
init("image", "Icon");
66

77
function detect() {
88
if (Binary.compare("'SMDH'")) {
9-
sVersion = "Icon";
9+
sVersion = "ICN";
1010
bDetected = true; // Mark as detected
1111
}
1212

0 commit comments

Comments
 (0)