replaced hardcoded lua script and libs paths with defines, Atari build stack adjustments (reduced it's size to 8k)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1800 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
nokturnal
2011-06-15 22:40:43 +00:00
parent 7184fb857f
commit 78e1745ef1
5 changed files with 21 additions and 6 deletions

View File

@@ -45,7 +45,7 @@
#include "graph.h"
#include "filesel.h" // Read_list_of_drives()
#include "realpath.h"
#include "setup.h"
/// Lua scripts bound to shortcut keys.
char * Bound_script[10];
@@ -1491,8 +1491,8 @@ void Run_script(const char *script_subdirectory, const char *script_filename)
strcpy(buf, "LUA_PATH=");
strcat(buf, Data_directory);
Append_path(buf+9, "scripts", NULL);
Append_path(buf+9, "libs", NULL);
Append_path(buf+9, SCRIPTS_SUBDIRECTORY, NULL);
Append_path(buf+9, LUALIB_SUBDIRECTORY, NULL);
Append_path(buf+9, "?.lua", NULL);
putenv(buf);