فهرست منبع

* [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)
 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)
    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());
       Con::warnf("Linux Compatibility Warning: %s != %s", String(_info.cFileName).c_str(), _path.getFullFileName().c_str());
    }
    }
+#endif
 }
 }
 
 
 FileNodeRef Win32FileSystem::resolve(const Path& path)
 FileNodeRef Win32FileSystem::resolve(const Path& path)