File tree 3 files changed +8
-6
lines changed
Assets/SimpleDiskUtils/Plugins/DiskUtils
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 36
36
using System . Runtime . Serialization . Formatters . Binary ;
37
37
using System . Text ;
38
38
using UnityEngine ;
39
+ using static System . IO . DriveInfo ;
39
40
40
41
namespace SimpleDiskUtils
41
42
{
@@ -140,8 +141,9 @@ public static string[] GetDriveNames()
140
141
/// Checks the available space.
141
142
/// </summary>
142
143
/// <returns>The available space in MB.</returns>
143
- public static int CheckAvailableSpace ( ) {
144
- DriveInfo drive = GetDrive ( DEFAULT_DRIVE ) ;
144
+ public static int CheckAvailableSpace ( )
145
+ {
146
+ DriveInfo drive = new DriveInfo ( DEFAULT_DRIVE ) ;
145
147
if ( drive == null )
146
148
return - 1 ;
147
149
return int . Parse ( ( drive . AvailableFreeSpace / MEGA_BYTE ) . ToString ( ) ) ;
@@ -152,7 +154,7 @@ public static int CheckAvailableSpace(){
152
154
/// </summary>
153
155
/// <returns>The total space in MB.</returns>
154
156
public static int CheckTotalSpace ( ) {
155
- DriveInfo drive = GetDrive ( DEFAULT_DRIVE ) ;
157
+ DriveInfo drive = new DriveInfo ( DEFAULT_DRIVE ) ;
156
158
if ( drive == null )
157
159
return - 1 ;
158
160
return int . Parse ( ( drive . TotalSize / MEGA_BYTE ) . ToString ( ) ) ;
@@ -163,7 +165,7 @@ public static int CheckTotalSpace(){
163
165
/// </summary>
164
166
/// <returns>The busy space in MB.</returns>
165
167
public static int CheckBusySpace ( ) {
166
- DriveInfo drive = GetDrive ( DEFAULT_DRIVE ) ;
168
+ DriveInfo drive = new DriveInfo ( DEFAULT_DRIVE ) ;
167
169
if ( drive == null )
168
170
return - 1 ;
169
171
Original file line number Diff line number Diff line change 5
5
"com.unity.ads" : " 4.2.1" ,
6
6
"com.unity.analytics" : " 3.8.1" ,
7
7
"com.unity.collab-proxy" : " 1.17.2" ,
8
- "com.unity.ide.rider" : " 3.0.15 " ,
8
+ "com.unity.ide.rider" : " 3.0.24 " ,
9
9
"com.unity.ide.visualstudio" : " 2.0.16" ,
10
10
"com.unity.ide.vscode" : " 1.2.5" ,
11
11
"com.unity.mobile.android-logcat" : " 1.3.2" ,
Original file line number Diff line number Diff line change 48
48
"url" : " https://packages.unity.com"
49
49
},
50
50
"com.unity.ide.rider" : {
51
- "version" : " 3.0.15 " ,
51
+ "version" : " 3.0.24 " ,
52
52
"depth" : 0 ,
53
53
"source" : " registry" ,
54
54
"dependencies" : {
You can’t perform that action at this time.
0 commit comments