| 94 | //============================================================================// |
| 95 | |
| 96 | int LuaVFS::FileExists(lua_State* L) { |
| 97 | const char* path = luaL_checkstring(L, 1); |
| 98 | std::string modes = luaL_optstring(L, 2, GetReadFilter(path, L)); |
| 99 | modes = BzVFS::allowModes(modes, L2ES(L)->vfsModes->readAllowed); |
| 100 | |
| 101 | lua_pushboolean(L, bzVFS.fileExists(path, modes)); |
| 102 | |
| 103 | return 1; |
| 104 | } |
| 105 | |
| 106 | |
| 107 | //============================================================================// |
nothing calls this directly
no test coverage detected