- [NEW] Function "configfolder()"
This commit is contained in:
6
lua.cpp
6
lua.cpp
@@ -777,6 +777,11 @@ extern "C" {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cpp_configfolder(lua_State *L) {
|
||||
lua_pushstring(L, configfolder());
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int cpp_exit(lua_State *L) {
|
||||
exit();
|
||||
return 0;
|
||||
@@ -897,6 +902,7 @@ void push_lua_funcs() {
|
||||
|
||||
lua_pushcfunction(L,cpp_getconf); lua_setglobal(L, "getconf");
|
||||
lua_pushcfunction(L,cpp_setconf); lua_setglobal(L, "setconf");
|
||||
lua_pushcfunction(L,cpp_configfolder); lua_setglobal(L, "configfolder");
|
||||
|
||||
lua_pushcfunction(L,cpp_exit); lua_setglobal(L, "quit");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user