MCPcopy Create free account
hub / github.com/DavidColson/Polybox / BindFileSystem

Function BindFileSystem

source/virtual_filesystem.cpp:175–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173// ***********************************************************************
174
175void BindFileSystem(lua_State* L) {
176
177 const luaL_Reg globalFuncs[] = {
178 { "store", VfsStore },
179 { "load", VfsLoad },
180 { "make_directory", VfsMakeDirectory },
181 { "remove", VfsRemove },
182 { "copy", VfsCopy },
183 { "move", VfsMove },
184 // { "list_directory", VfsListDirectory },
185 { NULL, NULL }
186 };
187
188 lua_pushvalue(L, LUA_GLOBALSINDEX);
189 luaL_register(L, NULL, globalFuncs);
190 lua_pop(L, 1);
191}

Callers 1

LoadAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected