Fix macOS build.

This commit is contained in:
Martín Lucas Golini
2023-10-29 21:35:26 -03:00
parent f23f56a6c7
commit 7706ba5be3

View File

@@ -208,7 +208,7 @@ bool FileSystem::fileHide( const std::string& filepath ) {
return SetFileAttributesW( (LPCWSTR)String( filepath ).toWideString().c_str(),
FILE_ATTRIBUTE_HIDDEN );
#elif EE_PLATFORM == EE_PLATFORM_MACOS
return 0 == chflags( filename.c_str(), UF_HIDDEN );
return 0 == chflags( filepath.c_str(), UF_HIDDEN );
#else
return false;
#endif