コード例 #1
0
ファイル: DHTools.cs プロジェクト: Buanderie/Board-Horde
 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 }));
         }
     }
 }
コード例 #2
0
ファイル: DHTools.cs プロジェクト: Buanderie/Board-Horde
 public static void LogError(string message)
 {
     DHTools.Log(message);
 }