UPDATE: update to go 1.25

This commit is contained in:
2025-08-24 17:22:30 +07:00
parent b2adcd7981
commit 99b9df1ce5
11 changed files with 1232 additions and 1730 deletions

View File

@@ -11,7 +11,7 @@ const LauncherFile = "firefly-launcher.exe"
const TempUrl = "./temp"
const CurrentLauncherVersion = "1.4.0"
const CurrentLauncherVersion = "1.4.1"
type ToolFile string

View File

@@ -41,13 +41,13 @@ func NewVerifier(gamePath, hdiffPath string) (*Verifier, error) {
func (v *Verifier) VerifyAll() error {
for i, entry := range v.DiffMapEntries {
application.Get().EmitEvent(
application.Get().Event.Emit(
"hdiffz:progress", map[string]int{
"progress": i,
"maxProgress": len(v.DiffMapEntries),
})
if err := check(entry.SourceFileName, entry.SourceFileSize, entry.SourceFileMD5, v.GamePath); err != nil {
application.Get().EmitEvent("hdiffz:error", err.Error())
application.Get().Event.Emit("hdiffz:error", err.Error())
continue
}
}