| 159 | //========================================================================== |
| 160 | |
| 161 | bool FileReadable(const char *filename) |
| 162 | { |
| 163 | #ifndef _WIN32 |
| 164 | return access (filename, R_OK) == 0; |
| 165 | #else |
| 166 | auto wstr = WideString(filename); |
| 167 | return _waccess (wstr.c_str(), 4) == 0; |
| 168 | #endif |
| 169 | } |
| 170 | |
| 171 | //========================================================================== |
| 172 | // |
nothing calls this directly
no test coverage detected