Mercurial > minori
comparison src/core/filesystem.cc @ 106:c8c72278f6fd
*: #if -> #ifdef, remove outdated comments in sys/win32/dark_theme.cc
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 05 Nov 2023 04:01:58 -0500 |
| parents | 9b2b41f83a5e |
| children | 39521c47c7a3 |
comparison
equal
deleted
inserted
replaced
| 105:6d8da6e64d61 | 106:c8c72278f6fd |
|---|---|
| 55 } | 55 } |
| 56 return true; | 56 return true; |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool Path::Exists() const { | 59 bool Path::Exists() const { |
| 60 #if WIN32 | 60 #ifdef WIN32 |
| 61 std::wstring buf = Strings::ToWstring(_path); | 61 std::wstring buf = Strings::ToWstring(_path); |
| 62 return GetFileAttributesW(buf.c_str()) != INVALID_FILE_ATTRIBUTES; | 62 return GetFileAttributesW(buf.c_str()) != INVALID_FILE_ATTRIBUTES; |
| 63 #else | 63 #else |
| 64 struct stat st; | 64 struct stat st; |
| 65 return stat(_path.c_str(), &st) == 0; | 65 return stat(_path.c_str(), &st) == 0; |
