diff --git a/DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs b/DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs index 1f11c17f8..0e8db09f8 100644 --- a/DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs +++ b/DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs @@ -117,7 +117,7 @@ namespace DiscImageChef.Core.Devices.Dumping currentTry = new DumpHardwareType { - Software = Metadata.Version.GetSoftwareType(platform), + Software = Metadata.Version.GetSoftwareType(), Manufacturer = manufacturer, Model = model, Serial = serial @@ -136,7 +136,7 @@ namespace DiscImageChef.Core.Devices.Dumping }; currentTry = new DumpHardwareType { - Software = Metadata.Version.GetSoftwareType(platform), + Software = Metadata.Version.GetSoftwareType(), Manufacturer = manufacturer, Model = model, Serial = serial diff --git a/DiscImageChef.Core/Devices/Dumping/SSC.cs b/DiscImageChef.Core/Devices/Dumping/SSC.cs index dbf5262c2..31a0405f7 100644 --- a/DiscImageChef.Core/Devices/Dumping/SSC.cs +++ b/DiscImageChef.Core/Devices/Dumping/SSC.cs @@ -670,7 +670,7 @@ namespace DiscImageChef.Core.Devices.Dumping sidecar.BlockMedia[0].DumpHardwareArray[0].Model = dev.Model; sidecar.BlockMedia[0].DumpHardwareArray[0].Revision = dev.Revision; sidecar.BlockMedia[0].DumpHardwareArray[0].Serial = dev.Serial; - sidecar.BlockMedia[0].DumpHardwareArray[0].Software = Version.GetSoftwareType(dev.PlatformId); + sidecar.BlockMedia[0].DumpHardwareArray[0].Software = Version.GetSoftwareType(); sidecar.BlockMedia[0].TapeInformation = partitions.ToArray(); if(!aborted) diff --git a/DiscImageChef.Metadata/Version.cs b/DiscImageChef.Metadata/Version.cs index 7250755bf..52f159a64 100644 --- a/DiscImageChef.Metadata/Version.cs +++ b/DiscImageChef.Metadata/Version.cs @@ -40,15 +40,13 @@ namespace DiscImageChef.Metadata /// /// Gets XML software type for the running version /// - /// Platform we are running in /// XML software type - public static SoftwareType GetSoftwareType(PlatformID platform) + public static SoftwareType GetSoftwareType() { - // TODO: Platform should be get automatically return new SoftwareType { Name = "DiscImageChef", - OperatingSystem = platform.ToString(), + OperatingSystem = DetectOS.GetRealPlatformID().ToString(), Version = typeof(Version).Assembly.GetName().Version.ToString() }; }