16#include "nlua_colour.h"
17#include "nlua_linopt.h"
18#include "nlua_music.h"
22static nlua_env naevpedia_env = LUA_NOREF;
27int naevpedia_open(
const char *path )
29 char buf[STRMAX_SHORT];
32 if ( naevpedia_env == LUA_NOREF ) {
33 naevpedia_env = nlua_newEnv(
"naevpedia" );
43 snprintf( buf,
sizeof( buf ),
"require('naevpedia').open('%s')", path );
44 status = nlua_dobufenv( naevpedia_env, buf, strlen( buf ), buf );
46 WARN( _(
"Naevpedia '%s' Lua error:\n%s" ), path,
47 lua_tostring(
naevL, -1 ) );
Header file with generic functions and naev-specifics.
int nlua_loadStandard(nlua_env env)
Loads the standard Naev Lua API.
int nlua_loadBackground(nlua_env env)
Loads the graphics library.
int nlua_loadCol(nlua_env env)
Loads the colour library.
int nlua_loadLinOpt(nlua_env env)
Loads the linopt library.
int nlua_loadMusic(nlua_env env)
Music Lua module.
int nlua_loadTex(nlua_env env)
Loads the texture library.
int nlua_loadTk(nlua_env env)
Loads the Toolkit Lua library.