Skip to content

Commit fc81ca1

Browse files
One more for the road.
1 parent 81f0662 commit fc81ca1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

BinaryObjectScanner/FileType/ISO9660.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,13 @@ public static bool NoteworthyApplicationUse(PrimaryVolumeDescriptor pvd)
8989
noteworthyApplicationUse = false;
9090
else if (potentialAppUseString.StartsWith("ULTRAISO"))
9191
noteworthyApplicationUse = false;
92+
else if (potentialAppUseString.StartsWith("Rimage"))
93+
noteworthyApplicationUse = false;
9294
else if (Array.TrueForAll(Encoding.ASCII.GetBytes(potentialAppUseString), b => b == 0x20))
9395
noteworthyApplicationUse = false;
9496
// More things will have to go here as more disc authoring softwares are found that do this.
97+
// Redump ID 24478 has a bunch of 0x20 with norb in the middle, some discs have 0x20 that ends in a "/"
98+
// character. If these are found to be causing issues they can be added.
9599
}
96100

97101
offset = 141;

BinaryObjectScanner/Protection/LaserLok.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ public List<string> CheckDirectoryPath(string path, List<string>? files)
158158
var pvd = (PrimaryVolumeDescriptor)iso.VolumeDescriptorSet[0];
159159

160160
if (FileType.ISO9660.NoteworthyApplicationUse(pvd))
161-
return "Znone"; //TODO: this might be too unsafe until more App Use strings are known
161+
return null; //TODO: this might be too unsafe until more App Use strings are known
162162

163163
if (!FileType.ISO9660.NoteworthyReserved653Bytes(pvd))
164-
return "Znone";
164+
return null;
165165

166166
#endregion
167167

@@ -181,7 +181,7 @@ public List<string> CheckDirectoryPath(string path, List<string>? files)
181181

182182
// Some discs such as 128068, and also more normal ones, don't seem to have any identifying data.
183183
// TODO: list some normal ones
184-
return "Znone";
184+
return null;
185185
}
186186

187187
private static string GetBuild(byte[]? sectionContent, bool versionTwo)

0 commit comments

Comments
 (0)