// path
var (
SaveEmote = comp.NewComp(saveEmote)
+ replace = strings.NewReplacer(`| `, `\ `, `/ `, `: `, `* `, `? `, `" `, `< `, `> `, `| `)
)
type Danmu struct {
*ptr.Msg = "[" + *ptr.Msg + emoticon_unique + "]"
}
}
- savePath := "emots/" + *ptr.Msg + ".png"
+ savePath := "emots/" + replace.Replace(*ptr.Msg) + ".png"
if !file.New(savePath, 0, true).IsExist() {
go func() {
req := c.C.ReqPool.Get()
continue
}
- savePath := "emots/" + k + ".png"
+ savePath := "emots/" + replace.Replace(k) + ".png"
if file.New(savePath, 0, true).IsExist() {
continue
}