Eluna tweak load order. You can now freely use require() on any script. all lua files are loaded alphabetically (path is taken into account) and the extensions folder is loaded first always
This commit is contained in:
10
extensions/_Misc.lua
Normal file
10
extensions/_Misc.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
--
|
||||
-- Copyright (C) 2010 - 2014 Eluna Lua Engine <http://emudevs.com/>
|
||||
-- This program is free software licensed under GPL version 3
|
||||
-- Please see the included DOCS/LICENSE.md for more information
|
||||
--
|
||||
|
||||
-- Set correct require paths
|
||||
package.path = package.path.."lua_scripts\\?;lua_scripts\\?.dll;lua_scripts\\?.lua"
|
||||
-- Randomize random
|
||||
math.randomseed(tonumber(tostring(os.time()):reverse():sub(1,6)))
|
||||
Reference in New Issue
Block a user