MCPcopy Create free account
hub / github.com/ZDoom/Raze / FileReadable

Function FileReadable

source/common/utility/cmdlib.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159//==========================================================================
160
161bool 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//

Callers

nothing calls this directly

Calls 2

WideStringFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected