Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Added the possibility to get if the device has an optical disc device (
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Aug 3, 2022
1 parent efd4a37 commit 4158636
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LeoCorpLibrary/Env.cs
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,8 @@ public static UnitType GetDriveUnitType(DriveInfo driveInfo)
}
}

public static bool IsDriveOpticalDrive(DriveInfo driveInfo) => driveInfo.DriveType == DriveType.CDRom;

/// <summary>
/// Gets the current <see cref="SystemThemes"/> of the operating system (Windows only).
/// </summary>
Expand Down

0 comments on commit 4158636

Please sign in to comment.