add rules & add 'show-content-access' rule

This commit is contained in:
MihailRis
2024-11-06 17:31:31 +03:00
parent a50cb109c8
commit 2e24d60404
7 changed files with 156 additions and 28 deletions
+5
View File
@@ -204,6 +204,11 @@ void scripting::cleanup() {
}
lua::pop(L);
lua::getglobal(L, "rules");
lua::getfield(L, "clear");
lua::call_nothrow(L, 0);
lua::pop(L);
if (lua::getglobal(L, "__scripts_cleanup")) {
lua::call_nothrow(L, 0);
}