2
0
mirror of https://github.com/OrbTools/OrbCommon synced 2024-11-18 03:25:32 +00:00

generic PKM KM Loader

This commit is contained in:
Minizbot2012 2021-02-10 12:51:13 -05:00
parent f89d112380
commit 16b9b516a7
No known key found for this signature in database
GPG Key ID: 977C8ADE12361917

View File

@ -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()
}