mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUERipper revamp
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using CUETools.CDImage;
|
||||
@@ -22,6 +23,18 @@ namespace CUETools.Ripper
|
||||
event EventHandler<ReadProgressArgs> ReadProgress;
|
||||
}
|
||||
|
||||
public class CDDrivesList
|
||||
{
|
||||
public static char[] DrivesAvailable()
|
||||
{
|
||||
List<char> result = new List<char>();
|
||||
foreach (DriveInfo info in DriveInfo.GetDrives())
|
||||
if (info.DriveType == DriveType.CDRom)
|
||||
result.Add(info.Name[0]);
|
||||
return result.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ReadProgressArgs : EventArgs
|
||||
{
|
||||
public int Position;
|
||||
|
||||
Reference in New Issue
Block a user