- Activades les llibreries estandar de lua

This commit is contained in:
2023-11-28 13:16:53 +01:00
parent 709a74a76a
commit 2dcbdfa975
2 changed files with 2 additions and 1 deletions

View File

@@ -422,6 +422,7 @@ const char boot[] = "function init()mode(1)cls()play('o5l0v5cegv4cegv3cegv2cegv1
void lua_init(const char* filename, const bool start_playing) { void lua_init(const char* filename, const bool start_playing) {
if (lua_state != STATE_STOPPED) lua_quit(); if (lua_state != STATE_STOPPED) lua_quit();
L = luaL_newstate(); L = luaL_newstate();
luaL_openlibs(L);
//init_exists = update_exists = false; //init_exists = update_exists = false;
bool file_loaded = true; bool file_loaded = true;

View File

@@ -4,6 +4,6 @@
//extern "C" { //extern "C" {
#include "lua.h" #include "lua.h"
//#include "lualib.h" #include "lualib.h"
#include "lauxlib.h" #include "lauxlib.h"
//} //}