Skip to content

Commit 55df5d3

Browse files
authored
Update library.cpp
1 parent 31d6258 commit 55df5d3

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

source/library.cpp

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
#include <lua.hpp>
2-
#include <lauxlib.h>
3-
#include <lualib.h>
4-
#include "lfs.h" // LuaFileSystem for file handling
5-
#include <sqlite3.h> // SQLite for database operations
6-
#include <json/json.h> // JSON parsing
7-
#include <zip.h> // LibZip for compressed files handling
1+
#include <lua.hpp> // Lua core
2+
#include <lauxlib.h> // Lua auxiliary functions
3+
#include <lualib.h> // Lua standard libraries
4+
#include <lfs.h> // LuaFileSystem for file handling
5+
#include <ssl.h> // SSL library for encryption
6+
#include <sql.h> // SQL library (for database access, if needed)
7+
#include <json.h> // JSON library (if you need to handle JSON)
8+
#include <zip.h> // Zip library (if you need zip functionalities)
9+
#include <aes.h> // AES encryption library (if needed)
10+
#include <ext.h> // External library (if you have a custom extension)
11+
#include <python.h> // Python library (if you're embedding Python)
12+
#include <libcrypto.h> // OpenSSL crypto functions (if needed)
813

914
extern "C" int luaopen_mylibrary(lua_State *L) {
1015
// Load LuaFileSystem
1116
luaL_requiref(L, "lfs", luaopen_lfs, 1);
1217
lua_pop(L, 1); // Remove the library from the stack
1318

14-
// Additional library setup for Roblox executor (if needed)
15-
16-
// Run main Lua script
17-
luaL_dostring(L, "require('main.lua')");
19+
// Run main Luau script
20+
luaL_dostring(L, "require('main.luau')");
1821

1922
return 0;
2023
}
@@ -27,7 +30,7 @@ int main(int argc, char** argv) {
2730
luaopen_mylibrary(L);
2831

2932
// Execute Roblox-related Lua code or executor script
30-
luaL_dofile(L, "executor.lua");
33+
luaL_dofile(L, "executor.luau");
3134

3235
lua_close(L);
3336
return 0;

0 commit comments

Comments
 (0)