浏览代码

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

Robert MacGregor 3 年之前
父节点
当前提交
0a45fac224
共有 1 个文件被更改,包括 4 次插入4 次删除
  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);
       }
    }