Allow to use dofile in lua scripts : we now chdir to the script folder before running the script, so it will easily find other scripts. If you want to run scripts located elsewhere, use relative or absolute path.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1367 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2010-03-01 12:42:25 +00:00
parent 827ad2da1c
commit 46f235f743

View File

@ -959,6 +959,7 @@ void Button_Brush_Factory(void)
Display_cursor();
Flush_update();
chdir(scriptdir);
L = lua_open();