Skip to content

hseditor.HasChanges should more precisely check data #213

@gucio321

Description

@gucio321

Hi there,
currently our hseditor.HasChanges method does as follows:

                newData := editor.GenerateSaveData()
                if newData != nil {
                        oldData, err := e.Path.GetFileBytes()
                        if err == nil {
                                return !bytes.Equal(oldData, newData)
                        }
                }

but most of our encoders aren't as precise. They are encoding data, but sometimes in a bit changed order e.t.c...
HasChanges should really check if edited (viewed) structure has changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions