mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Change VMDK hwversion to unsigned integer.
This commit is contained in:
@@ -111,7 +111,7 @@ namespace DiscImageChef.DiscImages
|
|||||||
ulong grainSize;
|
ulong grainSize;
|
||||||
uint[] gTable;
|
uint[] gTable;
|
||||||
bool hasParent;
|
bool hasParent;
|
||||||
int hwversion;
|
uint hwversion;
|
||||||
ImageInfo imageInfo;
|
ImageInfo imageInfo;
|
||||||
string imageType;
|
string imageType;
|
||||||
uint maxCachedGrains;
|
uint maxCachedGrains;
|
||||||
@@ -867,7 +867,7 @@ namespace DiscImageChef.DiscImages
|
|||||||
{
|
{
|
||||||
("adapter_type", typeof(string),
|
("adapter_type", typeof(string),
|
||||||
"Type of adapter type. Possible values: ide, lsilogic, buslogic, legacyESX."),
|
"Type of adapter type. Possible values: ide, lsilogic, buslogic, legacyESX."),
|
||||||
("hwversion", typeof(int), "VDMK hardware version."), ("sparse", typeof(bool), "Use sparse extents."),
|
("hwversion", typeof(uint), "VDMK hardware version."), ("sparse", typeof(bool), "Use sparse extents."),
|
||||||
("split", typeof(bool), "Split data file at 2GiB.")
|
("split", typeof(bool), "Split data file at 2GiB.")
|
||||||
};
|
};
|
||||||
public IEnumerable<string> KnownExtensions => new[] {".vmdk"};
|
public IEnumerable<string> KnownExtensions => new[] {".vmdk"};
|
||||||
@@ -898,7 +898,7 @@ namespace DiscImageChef.DiscImages
|
|||||||
|
|
||||||
if(options.TryGetValue("hwversion", out string tmpValue))
|
if(options.TryGetValue("hwversion", out string tmpValue))
|
||||||
{
|
{
|
||||||
if(!int.TryParse(tmpValue, out hwversion))
|
if(!uint.TryParse(tmpValue, out hwversion))
|
||||||
{
|
{
|
||||||
ErrorMessage = "Invalid value for hwversion option";
|
ErrorMessage = "Invalid value for hwversion option";
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user