- [NEW] Function "configfolder()"

This commit is contained in:
2023-02-01 19:15:18 +01:00
parent f457075c49
commit 38e209fa76
5 changed files with 18 additions and 1 deletions

View File

@@ -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");