mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Revert changes to extension from 2343f1b2d6
This commit is contained in:
@@ -178,9 +178,9 @@ void Eluna::AddScriptPath(std::string filename, std::string fullpath)
|
|||||||
filename = filename.substr(0, extDot);
|
filename = filename.substr(0, extDot);
|
||||||
|
|
||||||
// check extension and add path to scripts to load
|
// check extension and add path to scripts to load
|
||||||
if (ext != ".lua" && ext != ".dll")
|
if (ext != ".lua" && ext != ".dll" && ext != ".ext")
|
||||||
return;
|
return;
|
||||||
bool extension = filename.find(".ext") != std::string::npos;
|
bool extension = ext == ".ext";
|
||||||
|
|
||||||
LuaScript script;
|
LuaScript script;
|
||||||
script.fileext = ext;
|
script.fileext = ext;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
-- Please see the included DOCS/LICENSE.md for more information
|
-- Please see the included DOCS/LICENSE.md for more information
|
||||||
--
|
--
|
||||||
|
|
||||||
-- filename.ext.lua files are loaded before normal .lua files
|
-- filename.ext files are loaded before normal .lua files
|
||||||
|
|
||||||
-- Functions with parameters or multiple return values are not supported
|
-- Functions with parameters or multiple return values are not supported
|
||||||
-- These functions should return static data
|
-- These functions should return static data
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
-- Please see the included DOCS/LICENSE.md for more information
|
-- Please see the included DOCS/LICENSE.md for more information
|
||||||
--
|
--
|
||||||
|
|
||||||
-- filename.ext.lua files are loaded before normal .lua files
|
-- filename.ext files are loaded before normal .lua files
|
||||||
|
|
||||||
local variableStores = {
|
local variableStores = {
|
||||||
Map = {},
|
Map = {},
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
-- Please see the included DOCS/LICENSE.md for more information
|
-- Please see the included DOCS/LICENSE.md for more information
|
||||||
--
|
--
|
||||||
|
|
||||||
-- filename.ext.lua files are loaded before normal .lua files
|
-- filename.ext files are loaded before normal .lua files
|
||||||
|
|
||||||
-- Randomize random
|
-- Randomize random
|
||||||
math.randomseed(tonumber(tostring(os.time()):reverse():sub(1,6)))
|
math.randomseed(tonumber(tostring(os.time()):reverse():sub(1,6)))
|
||||||
Reference in New Issue
Block a user