Backported MediaFile stuff from Nmkoder

This commit is contained in:
n00mkrad
2022-07-20 18:10:31 +02:00
parent 30b3faf16d
commit d96513ed4b
39 changed files with 1383 additions and 271 deletions

View File

@@ -94,11 +94,11 @@ namespace Flowframes
{
try
{
if (Interpolate.current == null || Interpolate.current.tempFolder.Length < 3)
if (Interpolate.currentSettings == null || Interpolate.currentSettings.tempFolder.Length < 3)
return;
string drivePath = Interpolate.current.tempFolder.Substring(0, 2);
long mb = IoUtils.GetDiskSpace(Interpolate.current.tempFolder);
string drivePath = Interpolate.currentSettings.tempFolder.Substring(0, 2);
long mb = IoUtils.GetDiskSpace(Interpolate.currentSettings.tempFolder);
Logger.Log($"Disk space check for '{drivePath}/': {(mb / 1024f).ToString("0.0")} GB free.", true);