You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested using Version v2023.7.1 from the Unity Asset Store (latest as of this post). In SystemIODataService.IsThereEnoughDiskSpaceFor we currently have
publicasyncTask<bool>IsThereEnoughDiskSpaceFor(longbytes){try{
#if UNITY_ANDROID//DriveInfo is not supported on iLcppAndroidJNI.AttachCurrentThread();varstatFs=newAndroidJavaObject("android.os.StatFs",persistentDataPath);varfreeBytes=statFs.Call<long>("getFreeBytes");returnbytes<freeBytes;
#else
FileInfof=newFileInfo(PersistentDataRootDirectory);stringdrive=Path.GetPathRoot(f.FullName);vard=newDriveInfo(drive);returnbytes<d.AvailableFreeSpace;
#endif
}catch(Exceptione){Console.WriteLine(e);throw;}}
which correctly notes that DriveInfo is not supported in IL2CPP, as recorded here.
However, it will be used on any platform other than Android which would cause the crash (I have only been testing this on Standalone). Previous modio versions had
publicasyncTask<bool>IsThereEnoughDiskSpaceFor(longbytes){// Not implemented for this platformreturntrue;}
Not sure if there is any solution here for IL2CPP beyond just allowing the installation attempt to proceed (and fail) and then catch the IOException?
The text was updated successfully, but these errors were encountered:
Tested using Version v2023.7.1 from the Unity Asset Store (latest as of this post). In
SystemIODataService.IsThereEnoughDiskSpaceFor
we currently havewhich correctly notes that DriveInfo is not supported in IL2CPP, as recorded here.
However, it will be used on any platform other than Android which would cause the crash (I have only been testing this on Standalone). Previous modio versions had
Not sure if there is any solution here for IL2CPP beyond just allowing the installation attempt to proceed (and fail) and then catch the IOException?
The text was updated successfully, but these errors were encountered: