mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Add filesystem logging for .NET 6
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
- .NET 6.0 and Cleanup
|
||||
- Remove .NET Core 3.1 from test project for now
|
||||
- Remove .NET Core 3.1 entirely
|
||||
- Add filesystem logging for .NET 6
|
||||
|
||||
### 2.3 (2022-02-05)
|
||||
- Start overhauling Redump information pulling, again
|
||||
|
||||
@@ -242,12 +242,12 @@ namespace MPF.Core.Data
|
||||
double dvdMaxSize = 9 * Math.Pow(1024, 3);
|
||||
|
||||
// Attempt to determine media type by size
|
||||
if (driveInfo.TotalSize < cdMaxSize)
|
||||
return (MediaType.CDROM, null);
|
||||
else if (driveInfo.TotalSize < dvdMaxSize)
|
||||
return (MediaType.DVD, null);
|
||||
if (this.TotalSize < cdMaxSize)
|
||||
return (MediaType.CDROM, $"Detected filesystem: {this.DriveFormat}");
|
||||
else if (this.TotalSize < dvdMaxSize)
|
||||
return (MediaType.DVD, $"Detected filesystem: {this.DriveFormat}");
|
||||
else
|
||||
return (MediaType.BluRay, null);
|
||||
return (MediaType.BluRay, $"Detected filesystem: {this.DriveFormat}");
|
||||
|
||||
// TODO: In order to get the disc type, Aaru.Core will need to be included as a
|
||||
// package. Unfortunately, it currently has a conflict with one of the required libraries:
|
||||
|
||||
@@ -832,7 +832,7 @@ namespace MPF.UI.ViewModels
|
||||
|
||||
// If we got an error message, post it to the log
|
||||
if (errorMessage != null)
|
||||
App.Logger.VerboseLogLn($"Error in detecting media type: {errorMessage}");
|
||||
App.Logger.VerboseLogLn($"Message from detecting media type: {errorMessage}");
|
||||
|
||||
// If we got either an error or no media, default to the current System default
|
||||
if (detectedMediaType == null)
|
||||
|
||||
Reference in New Issue
Block a user