Add Aaru as creator for Virtual PC disk images.

This commit is contained in:
2020-02-27 20:55:03 +00:00
parent 4b98c9f406
commit a6e907438f
3 changed files with 13 additions and 2 deletions

View File

@@ -81,7 +81,10 @@ namespace Aaru.DiscImages
/// Created by DiscImageChef, "dic "
/// </summary>
const uint CREATOR_DISCIMAGECHEF = 0x64696320;
/// <summary>
/// Created by Aaru, "aaru"
/// </summary>
const uint CREATOR_AARU = 0x61617275;
/// <summary>
/// Disk image created by Virtual Server 2004
/// </summary>

View File

@@ -272,6 +272,14 @@ namespace Aaru.DiscImages
$"{(thisFooter.CreatorVersion & 0xFF000000) >> 24}.{(thisFooter.CreatorVersion & 0xFF0000) >> 16}.{(thisFooter.CreatorVersion & 0xFF00) >> 8}.{thisFooter.CreatorVersion & 0xFF}";
}
break;
case CREATOR_AARU:
{
imageInfo.Application = "Aaru";
imageInfo.ApplicationVersion =
$"{(thisFooter.CreatorVersion & 0xFF000000) >> 24}.{(thisFooter.CreatorVersion & 0xFF0000) >> 16}.{(thisFooter.CreatorVersion & 0xFF00) >> 8}.{thisFooter.CreatorVersion & 0xFF}";
}
break;
default:
{
imageInfo.Application =

View File

@@ -187,7 +187,7 @@ namespace Aaru.DiscImages
Version = VERSION1,
Timestamp =
(uint)(DateTime.Now - new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalSeconds,
CreatorApplication = CREATOR_DISCIMAGECHEF,
CreatorApplication = CREATOR_AARU,
CreatorVersion =
(uint)(((thisVersion.Major & 0xFF) << 24) + ((thisVersion.Minor & 0xFF) << 16) +
((thisVersion.Build & 0xFF) << 8) + (thisVersion.Revision & 0xFF)),