Issue 494: fixed code to compile as well with Lua 5.1 and 5.2
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1988 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
a43c9eb31b
commit
b1f6a0329b
@ -1653,11 +1653,7 @@ void Run_script(const char *script_subdirectory, const char *script_filename)
|
||||
Extract_path(buf,Last_run_script);
|
||||
chdir(buf);
|
||||
|
||||
#if defined(__AROS__)
|
||||
L = luaL_newstate(); // lua_open() doesn't exist anymore in Lua-5.2
|
||||
#else
|
||||
L = lua_open();
|
||||
#endif
|
||||
L = luaL_newstate(); // used to be lua_open() on Lua 5.1, deprecated on 5.2
|
||||
|
||||
strcpy(buf, "LUA_PATH=");
|
||||
strcat(buf, Data_directory);
|
||||
|
||||
@ -492,15 +492,15 @@ static const T_Help_table helptable_credits[] =
|
||||
HELP_TEXT (" Frost Grimmy Gürkan Sengün ")
|
||||
HELP_TEXT (" Hatch HoraK-FDF iLKke ")
|
||||
HELP_TEXT (" Iw2evk jackfrost128 Jamon ")
|
||||
HELP_TEXT (" keito kusma Lord Graga ")
|
||||
HELP_TEXT (" Lorenzo Gatti MagerValp maymunbeyin ")
|
||||
HELP_TEXT (" mind MooZ Pasi Kallinen ")
|
||||
HELP_TEXT (" the Peach petter PheeL ")
|
||||
HELP_TEXT (" Ravey1138 richienyhus rixard ")
|
||||
HELP_TEXT (" sm4tik spratek Surt ")
|
||||
HELP_TEXT (" tape.yrm TeeEmCee tempest ")
|
||||
HELP_TEXT (" Timo Kurrpa titus^Rab Tobé ")
|
||||
HELP_TEXT (" yakumo2975 00ai99 ")
|
||||
HELP_TEXT (" keito kusma lmemsm ")
|
||||
HELP_TEXT (" Lord Graga Lorenzo Gatti MagerValp ")
|
||||
HELP_TEXT (" maymunbeyin mind MooZ ")
|
||||
HELP_TEXT (" Pasi Kallinen the Peach petter ")
|
||||
HELP_TEXT (" PheeL Ravey1138 richienyhus ")
|
||||
HELP_TEXT (" rixard sm4tik spratek ")
|
||||
HELP_TEXT (" Surt tape.yrm TeeEmCee ")
|
||||
HELP_TEXT (" tempest Timo Kurrpa titus^Rab ")
|
||||
HELP_TEXT (" Tobé yakumo2975 00ai99 ")
|
||||
HELP_TEXT ("")
|
||||
HELP_TEXT (" ... posted the annoying bug reports.")
|
||||
HELP_TEXT ("")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user