MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetReadFilter

Function GetReadFilter

src/lua/LuaVFS.cpp:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81//
82
83const char* GetReadFilter(const std::string& path, lua_State* L) {
84 if (!path.empty() && (path[0] == ':')) {
85 return L2ES(L)->vfsModes->readAllowed;
86 }
87 else {
88 return L2ES(L)->vfsModes->readDefault;
89 }
90}
91
92
93//============================================================================//

Callers 5

FileExistsMethod · 0.85
FileSizeMethod · 0.85
ReadFileMethod · 0.85
IncludeMethod · 0.85
DirListMethod · 0.85

Calls 2

L2ESFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected