Started to add Lua support to AROS.

src/Makefile: link with lua. Note that I'm currently using an absolute path to include/lua
which only exits on my machine until AROS has support for pkg-config.

src/setup.h: added valid path to lua scripts.

src/io.c: take colon into account when checking for last separator.

src/factory.c: use luaL_newstate() instead of lua_open() because latter doesn't exist anymore in Lua-5.2.
Note: that fix should be valid for all platforms.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1977 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
mazzearos
2012-08-03 19:10:44 +00:00
parent 18886d86cb
commit ce8fbe076d
4 changed files with 14 additions and 4 deletions

View File

@@ -73,6 +73,8 @@ void Set_config_directory(const char * program_dir, char * config_dir);
/// Name of the subdirectory containing scripts
#if defined (__MINT__)
#define SCRIPTS_SUBDIRECTORY "SCRIPTS"
#elif defined(__AROS__)
#define SCRIPTS_SUBDIRECTORY "share/grafx2/scripts"
#else
#define SCRIPTS_SUBDIRECTORY "scripts"
#endif