Revert "add a Lua helper to check for a file in the library path"
This reverts commit 27fb0f1973
.
This commit is contained in:
parent
14fd81ef7f
commit
9567787af2
1 changed files with 0 additions and 13 deletions
|
@ -289,17 +289,6 @@ static int CclLoadBuffer(lua_State *l)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
** Check if a file is accessible.
|
||||
** @param l Lua state
|
||||
** @return true or false
|
||||
**/
|
||||
static int CclCanAccessFile(lua_State *l) {
|
||||
LuaCheckArgs(l, 1);
|
||||
lua_pushboolean(l, CanAccessFile(LuaToString(l, 1)));
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
** Convert lua string in char*.
|
||||
** It checks also type and exit in case of error.
|
||||
|
@ -2450,8 +2439,6 @@ void ScriptRegister()
|
|||
lua_register(Lua, "Load", CclLoad);
|
||||
lua_register(Lua, "LoadBuffer", CclLoadBuffer);
|
||||
|
||||
lua_register(Lua, "CanAccessFile", CclCanAccessFile);
|
||||
|
||||
lua_register(Lua, "DebugPrint", CclDebugPrint);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue