This commit is contained in:
cdle
2023-06-07 19:15:27 +08:00
parent c74c9b130e
commit 1f02e78ea0
4 changed files with 64 additions and 16 deletions
+8
View File
@@ -3,6 +3,7 @@ package main
import (
"bufio"
"os"
"strings"
"time"
_ "github.com/cdle/sillyplus/adapters/qq"
@@ -26,6 +27,13 @@ func main() {
if arg == "-d" {
d = true
}
if arg == "-r" && strings.Contains(os.Args[0], ".ready.exe") { //准备程序还原程序
err := utils.CopyFile(utils.ProcessName, strings.Replace(utils.ProcessName, "ready.exe", ".exe", -1))
if err == nil {
utils.Daemon("reset")
}
continue
}
}
if !d {
t := false