public static void LogDrives() { DriveInfo[] drives = DriveInfo.GetDrives(); for (int i = 0; i < (int)drives.Length; i++) { DriveInfo driveInfo = drives[i]; if (driveInfo.IsReady) { UnityEngine.Debug.Log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Logging drives"); UnityEngine.Debug.Log(string.Concat("name:", driveInfo.Name)); UnityEngine.Debug.Log(string.Concat(new object[] { "avail free:", DHTools.BytesToMB((float)driveInfo.AvailableFreeSpace), " ", driveInfo.AvailableFreeSpace })); UnityEngine.Debug.Log(string.Concat(new object[] { "tot free:", DHTools.BytesToMB((float)driveInfo.TotalFreeSpace), " ", driveInfo.TotalFreeSpace })); UnityEngine.Debug.Log(string.Concat(new object[] { "tot size:", DHTools.BytesToMB((float)driveInfo.TotalSize), " ", driveInfo.TotalSize })); } } }
public static void LogError(string message) { DHTools.Log(message); }