Eluna fix load order

_ext in file name and .ext as extension can both be used to mark files as extensions that are loaded first. Otherwise all is loaded alphabetically. Everything is loaded as modules, which means that they cant be loaded twice with require.

closes #85
This commit is contained in:
Rochet2
2014-07-03 20:20:44 +03:00
parent 873d6a9537
commit 965d511d52
4 changed files with 8 additions and 3 deletions

10
extensions/_Misc.ext Normal file
View 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)))