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:
parent
f89d112380
commit
16b9b516a7
@ -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…
Reference in New Issue
Block a user