UPDATE: update to go 1.25
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user