revert previous changes

main
Minizbot2012 3 years ago
parent a52dff3c2d
commit 2d4b32c7f1
No known key found for this signature in database
GPG Key ID: 977C8ADE12361917

@ -1,9 +1,6 @@
package devices
import (
"encoding/binary"
"io"
"github.com/OrbTools/OrbCommon/gui"
)
@ -24,9 +21,3 @@ type Device struct {
var DeviceList = []string{
"Orbweaver",
}
//SavePKMKeymap saves an orb after edit
func SavePKMKeymap(mapped interface{}, file io.WriteCloser) {
binary.Write(file, binary.LittleEndian, mapped)
file.Close()
}

@ -138,6 +138,12 @@ func LoadKM(file string) *KeyMap {
return mapped
}
//SavePKMKeymap saves an orb after edit
func SavePKMKeymap(mapped *PKM, file io.WriteCloser) {
binary.Write(file, binary.LittleEndian, mapped)
file.Close()
}
//LoadPKMKeymap loads an orb for editing
func LoadPKMKeymap(file io.ReadCloser) interface{} {
mapped := new(PKM)

Loading…
Cancel
Save