revert previous changes

Minizbot2012 3 years ago
parent c562d8b1ca
commit 78b4b8e8e2

@ -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