Semi-unify drive finding

This commit is contained in:
Matt Nadareski
2023-02-23 21:37:36 -05:00
parent 37e4525c98
commit b579fec7ab
2 changed files with 7 additions and 12 deletions

View File

@@ -59,6 +59,7 @@
- Packaging requires `-windows` for framework
- Fix other `-windows` places for .NET 6
- Fix typo in DICMultiSectorReadValue
- Semi-unify drive finding
### 2.4 (2022-10-26)

View File

@@ -498,8 +498,6 @@ namespace MPF.Core.Data
}
}
#if NETFRAMEWORK
/// <summary>
/// Get all current attached Drives
/// </summary>
@@ -524,6 +522,8 @@ namespace MPF.Core.Data
.Select(d => Create(EnumConverter.ToInternalDriveType(d.DriveType), d.Name))
.ToList();
#if NETFRAMEWORK
// Get the floppy drives and set the flag from removable
try
{
@@ -547,9 +547,13 @@ namespace MPF.Core.Data
// No-op
}
#endif
return drives;
}
#if NETFRAMEWORK
/// <summary>
/// Get the media type for a device path using the Aaru libraries
/// </summary>
@@ -627,16 +631,6 @@ namespace MPF.Core.Data
#else
/// <summary>
/// Get all devices attached converted to Drive objects
/// </summary>
/// <param name="ignoreFixedDrives">True to ignore fixed drives from population, false otherwise</param>
/// <returns>List of drives, null on error</returns>
private static List<Drive> GetDriveList(bool ignoreFixedDrives)
{
return new List<Drive>();
}
/// <summary>
/// Get the media type for a device path using the Aaru libraries
/// </summary>