Explorar o código

* BugFix: Switch a few raw platform calls in reflectionProbe.cpp to the VFS.

Robert MacGregor %!s(int64=3) %!d(string=hai) anos
pai
achega
0a45fac224
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      Engine/source/T3D/lighting/reflectionProbe.cpp

+ 4 - 4
Engine/source/T3D/lighting/reflectionProbe.cpp

@@ -327,15 +327,15 @@ void ReflectionProbe::handleDeleteAction()
    if (mReflectionModeType != StaticCubemap)
    {
       String prefilPath = getPrefilterMapPath();
-      if (Platform::isFile(prefilPath))
+      if (Torque::FS::IsFile(prefilPath))
       {
-         Platform::fileDelete(prefilPath);
+         Torque::FS::Remove(prefilPath);
       }
 
       String irrPath = getIrradianceMapPath();
-      if (Platform::isFile(irrPath))
+      if (Torque::FS::IsFile(irrPath))
       {
-         Platform::fileDelete(irrPath);
+         Torque::FS::Remove(irrPath);
       }
    }