Commit 761da510 authored by Nemo Ma's avatar Nemo Ma

Update c11410000.lua

parent bb3ea896
...@@ -97,7 +97,11 @@ if not Duel.LoadScript and loadfile then ...@@ -97,7 +97,11 @@ if not Duel.LoadScript and loadfile then
require_list=require_list or {} require_list=require_list or {}
str="expansions/script/"..str str="expansions/script/"..str
if not require_list[str] then if not require_list[str] then
require_list[str]=loadfile(str..".lua") if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
pcall(require_list[str]) pcall(require_list[str])
end end
return require_list[str] return require_list[str]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment