From b2affe564ae0b3afa2b392a4f8a1ad2efdf26f65 Mon Sep 17 00:00:00 2001 From: Death Killer <884052+deathkiller@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:34:45 +0100 Subject: [PATCH] Fixed build --- Sources/Shared/IO/FileSystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Shared/IO/FileSystem.cpp b/Sources/Shared/IO/FileSystem.cpp index 0efb50ad..47879e5f 100644 --- a/Sources/Shared/IO/FileSystem.cpp +++ b/Sources/Shared/IO/FileSystem.cpp @@ -1404,7 +1404,7 @@ namespace Death { namespace IO { #elif defined(DEATH_TARGET_APPLE) || defined(__FreeBSD__) auto nullTerminatedPath = String::nullTerminatedView(path); struct stat sb; - return (::stat(nullTerminatedPath.data(), &st) == 0 && (sb.st_flags & UF_HIDDEN) == UF_HIDDEN); + return (::stat(nullTerminatedPath.data(), &sb) == 0 && (sb.st_flags & UF_HIDDEN) == UF_HIDDEN); #else auto nullTerminatedPath = String::nullTerminatedView(path); # if defined(DEATH_TARGET_ANDROID) @@ -1507,7 +1507,7 @@ namespace Death { namespace IO { #elif defined(DEATH_TARGET_APPLE) || defined(__FreeBSD__) auto nullTerminatedPath = String::nullTerminatedView(path); struct stat sb; - return (::stat(nullTerminatedPath.data(), &st) == 0 && (sb.st_flags & UF_IMMUTABLE) == UF_IMMUTABLE); + return (::stat(nullTerminatedPath.data(), &sb) == 0 && (sb.st_flags & UF_IMMUTABLE) == UF_IMMUTABLE); #else return false; #endif @@ -2362,7 +2362,7 @@ namespace Death { namespace IO { _savePath = CombinePath({ home, "Library/Application Support"_s, applicationName }); #elif defined(DEATH_TARGET_UNIX) || defined(DEATH_TARGET_EMSCRIPTEN) StringView config = ::getenv("XDG_CONFIG_HOME"); - if (IsAbsolutePath(config.empty())) { + if (IsAbsolutePath(config)) { _savePath = CombinePath(config, applicationName); return; }