package.path = [[.\lua_lib\?.lua;]] .. package.path
package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath
local 字集码互转库 = require("u8_to_a")
local u8 = 字集码互转库.u8_to_a
local f = require(u8("常用库"))
local 简文件库 = require("lfs")
local d_5 = {}
--~ 文
function d_5.局筛则数(o1)
local k1
local k1_9
--~ 则数排
k1_9 = f.历文(o1, string.gmatch, "[^\n]+")
k1_9 = f.历排(k1_9, f.全筛前缀, "Debug.ReloadFieldBegin")
k1 = string.match(k1_9[1], "[0-9]")
return k1 or 3
end
--~ 目对
function d_5.残局改名(o1)
local k1_9, k2_9
--~ 文件排
k1_9 = f.历文(o1.文件目, 简文件库.dir)
k1_9 = f.历排(k1_9, f.全筛后缀, ".lua")
for o2 = 1, #k1_9 do
k1_9[o2] = f.加前缀(k1_9[o2], o1.文件目)
k1_9[o2] = f.读文件(k1_9[o2])
k1_9[o2] = string.gsub(k1_9[o2], "%-%-" .. "%[(=*)%[" .. ".-" .. "%]%1%]", "")
k1_9[o2] = string.gsub(k1_9[o2], "%-%-" .. "[^\n]*", "")
end
--~ 则数排
k2_9 = f.历排(k1_9, d_5.局筛则数)
end
d_5.目对 = {
["文件目"] = "../single/"
, ["数据库路"] = [[D:\install\YGOPro\cards.cdb]]
}
for o1, o2 in pairs(d_5.目对) do
d_5.目对[o1] = f.操类(o2, "string", u8)
end
d_5.残局改名(d_5.目对)