瀏覽代碼

* [Win32] Adjustment: Only trigger the Linux compat warning when TORQUE_POSIX_PATH_CASE_INSENSITIVE is disabled.

Robert MacGregor 4 年之前
父節點
當前提交
bd9b3fd55b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Engine/source/platformWin32/winVolume.cpp

+ 2 - 0
Engine/source/platformWin32/winVolume.cpp

@@ -238,10 +238,12 @@ Win32FileSystem::~Win32FileSystem()
 
 void Win32FileSystem::verifyCompatibility(const Path& _path, WIN32_FIND_DATAW _info)
 {
+#ifndef TORQUE_POSIX_PATH_CASE_INSENSITIVE
    if (_path.getFullFileName().isNotEmpty() && _path.getFullFileName().compare(String(_info.cFileName)) != 0)
    {
       Con::warnf("Linux Compatibility Warning: %s != %s", String(_info.cFileName).c_str(), _path.getFullFileName().c_str());
    }
+#endif
 }
 
 FileNodeRef Win32FileSystem::resolve(const Path& path)