You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
295 B
13 lines
295 B
3 years ago
|
local function convert_j(self, file_name_in, file_name_out)
|
||
|
local content = io.load(file_name_in)
|
||
|
if not content then
|
||
|
message('文件无效:' .. file_name_in:string())
|
||
|
return
|
||
|
end
|
||
|
|
||
|
io.save(file_name_out, content:convert_wts(false, true))
|
||
|
|
||
|
end
|
||
|
|
||
|
return convert_j
|