From 9c4b54d9eefad79b91fb1e61016a056f5cb82771 Mon Sep 17 00:00:00 2001 From: TechnologicNick Date: Sun, 10 Oct 2021 23:24:25 +0200 Subject: [PATCH] Add more comments to the default lua_hooks.json --- PluginDevFolder/SMLuaHook/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PluginDevFolder/SMLuaHook/main.cpp b/PluginDevFolder/SMLuaHook/main.cpp index 7ec6e06..d855217 100644 --- a/PluginDevFolder/SMLuaHook/main.cpp +++ b/PluginDevFolder/SMLuaHook/main.cpp @@ -26,6 +26,8 @@ LIB_RESULT PluginLoad() { const char* defaultConfig = R"(// Configuration file for hooking the Lua C API { "hooks": { + + // This function is used for setting up the Lua environment "luaL_loadstring": [ /* { @@ -56,6 +58,8 @@ const char* defaultConfig = R"(// Configuration file for hooking the Lua C API } */ ], + + // All files the game tries to load pass through here "luaL_loadbuffer": [ /* { @@ -78,6 +82,7 @@ const char* defaultConfig = R"(// Configuration file for hooking the Lua C API } */ ] + } } )";