mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add Aaru as creator for Virtual PC disk images.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user