- Moderator
- #1
Hi
MP VERSION : 1.3 SVN Alpha to Beta
Windows 7
Actually MP use GetDriveType function for search Drive on System. but i think is obsolete with all USB HardDrive sold today !
Code:
Extracted from Util.cs
public static int getDriveType(string drive)
{
if (drive == null) return 2;
if ((GetDriveType(drive) & 5) == 5) return 5; //cd
if ((GetDriveType(drive) & 3) == 3) return 3; //fixed
if ((GetDriveType(drive) & 2) == 2) return 2; //removable
if ((GetDriveType(drive) & 4) == 4) return 4; //remote disk
if ((GetDriveType(drive) & 6) == 6) return 6; //ram disk
return 0;
}
PATCH from Deda & Sebastiii
EDIT :
2013 04 07 : Added to mantis
http://mantis.team-mediaportal.com/view.php?id=4340
Attachments
Last edited: