我再更新一些小东西

This commit is contained in:
EillesWan 2022-06-07 23:49:04 +08:00
parent 2340741bb9
commit ce1099a246
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -14,6 +14,9 @@ while True:
outpath = input('请输入输出路径:')
if not os.path.exists(outpath):
os.makedirs(outpath)
while True:
try:
outFormat = int(input('请输入输出格式(0:mcpack|1:BDX结构)'))
@ -58,6 +61,7 @@ while True:
if os.path.isdir(midipath):
for i in os.listdir(midipath):
if i.endswith('.mid'):
print(f'正在操作{i}')
convertion.convert(midipath + '/' + i, outpath + '/' + i[:-4] + '.mcpack')
if outFormat == 0:
convertion.tomcpack(