* FileSystemIDandChk/Plugins/ISO9660.cs:

Added code preventing it to be run on each partition,
	  because this filesystem will be once and only. Now it runs
	  only one time whenever there are partitions or how many.

	* FileSystemIDandChk/Plugins/FAT.cs:
	  Added code to handle false positives (FATs can be 1 or 2,
	  maybe 0 in the wild, never bigger).
	Modified for BinaryReader class.

	* FileSystemIDandChk/Plugins/BFS.cs:
	  Missed negation operand

	* FileSystemIDandChk/PartPlugins/NeXT.cs:
	* FileSystemIDandChk/PartPlugins/AppleMap.cs:
	  Added constants and modified for EndianAwareBinaryReader
	  class.

git-svn-id: svn://claunia.com/FileSystemIDandChk@16 17725271-3d32-4980-a8cb-9ff532f270ba
This commit is contained in:
2012-08-05 03:02:55 +00:00
parent 9d446877b4
commit a20dbb709a
6 changed files with 244 additions and 245 deletions

View File

@@ -12,10 +12,13 @@ namespace FileSystemIDandChk.Plugins
{
class ISO9660Plugin : Plugin
{
private static bool alreadyLaunched;
public ISO9660Plugin(PluginBase Core)
{
base.Name = "ISO9660 Filesystem";
base.PluginUUID = new Guid("d812f4d3-c357-400d-90fd-3b22ef786aa8");
alreadyLaunched = false;
}
private struct DecodedVolumeDescriptor
@@ -37,6 +40,11 @@ namespace FileSystemIDandChk.Plugins
public override bool Identify(FileStream fileStream, long offset)
{
if(alreadyLaunched)
return false;
else
alreadyLaunched = true;
byte VDType;
// ISO9660 Primary Volume Descriptor starts at 32768, so that's minimal size.