generic PKM KM Loader

main
Minizbot2012 3 years ago
parent f89d112380
commit 16b9b516a7
No known key found for this signature in database
GPG Key ID: 977C8ADE12361917

@ -1,6 +1,11 @@
package devices
import "github.com/OrbTools/OrbCommon/gui"
import (
"encoding/binary"
"io"
"github.com/OrbTools/OrbCommon/gui"
)
//ExtraBytes defines extra bytes to a type
type ExtraBytes struct {
@ -19,3 +24,9 @@ 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()
}

Loading…
Cancel
Save