path1 = gg.getFile() dir1 = '' for txt1 in string.gmatch(path1, '[^/]*/') do dir1 = dir1 .. txt1 --print(dir1) end config = gg.EXT_CACHE_DIR .. '/配置保存例子.cfg' sel1 = loadfile(config) if sel1 then sel1 = sel1() else sel1 = {dir1, true, '11'} end sel2 = gg.prompt({'例子', '例子', '例子[1;99]'}, sel1, {'file', 'checkbox', 'number'}) if not sel2 then return false end gg.saveVariable(sel2, config)