mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Semi-unify drive finding
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user