Skip to content

Commit

Permalink
🐞fix(管理器 > 导出): 修正导出时出现的扩展名重复问题
Browse files Browse the repository at this point in the history
雀魂Plus的一个经典BUG,导出时可能会出现 .mspe.mspe 的问题,现已修复(至少在WIndows上如此)
  • Loading branch information
iamapig120 committed Jun 10, 2020
1 parent 8cd5219 commit fcd774f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/BaseManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { appDataDir, Logger } from './global'
import { MajsoulPlus } from './majsoul_plus'
import {
fillObject,
getExportFileExtension,
removeDirSync,
unzipDir,
zipDir
Expand Down Expand Up @@ -79,7 +78,7 @@ export default abstract class BaseManager {

zipDir(
path.resolve(appDataDir, this.name, id),
`${pathToSave}.${getExportFileExtension(folder)}`
`${pathToSave}`
)
} catch (e) {
resp.err = (e as Error).message
Expand Down

0 comments on commit fcd774f

Please sign in to comment.