Skip to content

Commit

Permalink
Add more comments to the default lua_hooks.json
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnologicNick committed Oct 10, 2021
1 parent 5307376 commit 9c4b54d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PluginDevFolder/SMLuaHook/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
/*
{
Expand Down Expand Up @@ -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": [
/*
{
Expand All @@ -78,6 +82,7 @@ const char* defaultConfig = R"(// Configuration file for hooking the Lua C API
}
*/
]
}
}
)";
Expand Down

0 comments on commit 9c4b54d

Please sign in to comment.