游戏王残局简化版

Annotation For 残局文料/集YGOPro常量并据此产lua文件.lua
Login

Annotation For 残局文料/集YGOPro常量并据此产lua文件.lua

Lines of 残局文料/集YGOPro常量并据此产lua文件.lua from check-in f3ede91483 that are changed by the sequence of edits moving toward check-in f4c48d2eb7:

                         1: package.path = [[.\lua_lib\?.lua;]] .. package.path
                         2: package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath
                         3: local 字集码互转库 = require("u8_to_a")
                         4: local u8 = 字集码互转库.u8_to_a
                         5: local f = require(u8("常用库"))
                         6: local d_3 = {}
                         7: --~ 文件路
                         8: --~ 普常量文件名
                         9: function d_3.产普常量文件(o1, o2)
                        10:   local k1, k2
f3ede91483 2024-02-03   11:   local k1_11
                        12:   --~ 文
                        13:   k1 = f.读文件(o1)
                        14:   k1 = string.gsub(k1, "%-%-" .. "[^\n]*", "")
                        15:   k1 = string.gsub(k1, "[ \t]", "")
                        16:   --~ 常量排
f3ede91483 2024-02-03   17:   k1_11 = f.历文(k1, string.gmatch, "[^\n]+")
                        18:   --~ 文
f3ede91483 2024-02-03   19:   k2 = f.加对限(k1_11)
                        20:   f.写文件(k2, o2)
                        21:   end
                        22: --~ 文件路
                        23: --~ 字段名文件名
                        24: function d_3.产字段名文件(o1, o2)
                        25:   local k1, k2
f3ede91483 2024-02-03   26:   local k1_11
                        27:   --~ 文
                        28:   k1 = f.读文件(o1)
                        29:   --~ 常量排
f3ede91483 2024-02-03   30:   k1_11 = f.历文(k1, string.gmatch, "[^\n]+")
f3ede91483 2024-02-03   31:   k1_11 = f.历排(k1_11, f.全筛文, "^!setname")
f3ede91483 2024-02-03   32:   for o3 = 1, #k1_11 do
f3ede91483 2024-02-03   33:     k1_11[o3] = f.删左右空白(k1_11[o3])
f3ede91483 2024-02-03   34:     k1_11[o3] = string.gsub(k1_11[o3], "^!setname ", "")
f3ede91483 2024-02-03   35:     k1_11[o3] = string.gsub(k1_11[o3], "[|\t].+", "")
f3ede91483 2024-02-03   36:     k1_11[o3] = string.gsub(k1_11[o3], " ", "=", 1)
                        37:     end
                        38:   --~ 文
f3ede91483 2024-02-03   39:   k2 = f.加对限(k1_11)
                        40:   f.写文件(k2, o2)
                        41:   end
                        42: d_3.产普常量文件([[D:\install\YGOPro/script/constant.lua]], u8("普常量.lua"))
                        43: d_3.产字段名文件([[D:\install\YGOPro/strings.conf]], u8("字段名.lua"))