Skip to content

Commit

Permalink
Improve 总是生成ass (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
qydysky authored Feb 26, 2025
1 parent 43f50b9 commit a6d0d90
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Reply/F/ass/ass.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,8 @@ func (t *Ass) ToAss(savePath string) {
var lsd = make([]float64, lsSize)
var lso = make([]float64, lsSize)

var write bool
_, _ = f.Write([]byte(t.header), true)
for line := range loadCsv(savePath) {
if !write {
_, _ = f.Write([]byte(t.header), true)
write = true
}

danmul := utf8.RuneCountInString(line.Text)
danmuSec := (float64(t.showSec*t.fontsize*danmul) / float64(t.fontsize*danmul+playResX))
Expand Down

0 comments on commit a6d0d90

Please sign in to comment.