- Activades les llibreries estandar de lua
This commit is contained in:
1
lua.cpp
1
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) {
|
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;
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
//}
|
//}
|
||||||
|
|||||||
Reference in New Issue
Block a user