From 2dcbdfa9750ac793456c7c7c92ee141e68424e4d Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Tue, 28 Nov 2023 13:16:53 +0100 Subject: [PATCH] - Activades les llibreries estandar de lua --- lua.cpp | 1 + lua/lua.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua.cpp b/lua.cpp index b133527..76de67c 100644 --- a/lua.cpp +++ b/lua.cpp @@ -422,6 +422,7 @@ const char boot[] = "function init()mode(1)cls()play('o5l0v5cegv4cegv3cegv2cegv1 void lua_init(const char* filename, const bool start_playing) { if (lua_state != STATE_STOPPED) lua_quit(); L = luaL_newstate(); + luaL_openlibs(L); //init_exists = update_exists = false; bool file_loaded = true; diff --git a/lua/lua.hpp b/lua/lua.hpp index dd1ae9c..8f97ef3 100644 --- a/lua/lua.hpp +++ b/lua/lua.hpp @@ -4,6 +4,6 @@ //extern "C" { #include "lua.h" -//#include "lualib.h" +#include "lualib.h" #include "lauxlib.h" //}