mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Add drive format (fs) to log
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
- Use msbuild for .NET Framework 4.8
|
||||
- Update nuget packages
|
||||
- ReadAllText not ReadAllLines
|
||||
- Add drive format (fs) to log
|
||||
|
||||
### 2.4 (2022-10-26)
|
||||
- Update to DIC 20211001
|
||||
|
||||
@@ -491,6 +491,18 @@ namespace MPF.Core.Data
|
||||
|
||||
#region Helpers
|
||||
|
||||
/// <summary>
|
||||
/// Get the media type for a device path
|
||||
/// </summary>
|
||||
/// <returns>MediaType, null on error</returns>
|
||||
private (MediaType?, string) GetMediaTypeFromFilesystemName()
|
||||
{
|
||||
switch (this.DriveFormat)
|
||||
{
|
||||
default: return (null, $"Unrecognized format: {this.DriveFormat}");
|
||||
}
|
||||
}
|
||||
|
||||
#if NETFRAMEWORK
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -850,7 +850,7 @@ namespace MPF.UI.ViewModels
|
||||
// If the drive is marked active, try to read from it
|
||||
else if (drive.MarkedActive)
|
||||
{
|
||||
App.Logger.VerboseLog($"Trying to detect media type for drive {drive.Letter}.. ");
|
||||
App.Logger.VerboseLog($"Trying to detect media type for drive {drive.Letter} [{drive.DriveFormat}].. ");
|
||||
(MediaType? detectedMediaType, string errorMessage) = drive.GetMediaType();
|
||||
|
||||
// If we got an error message, post it to the log
|
||||
|
||||
Reference in New Issue
Block a user