Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Mar 18, 2024
1 parent af63597 commit b2affe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Shared/IO/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b2affe5

Please sign in to comment.