xdr: fix imports and readdile

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

@ -8,7 +8,6 @@ import (
xdr "github.com/davecgh/go-xdr/xdr2" xdr "github.com/davecgh/go-xdr/xdr2"
"io" "io"
"io/fs" "io/fs"
"os"
"strings" "strings"
) )
@ -29,7 +28,7 @@ func init() {
//LoadKeymap Load Orbmap KM structure //LoadKeymap Load Orbmap KM structure
func LoadKeymap(file io.ReadCloser, dev *DeviceDef) *KeyMap { func LoadKeymap(file io.ReadCloser, dev *DeviceDef) *KeyMap {
mapped := new(KeyMap) mapped := new(KeyMap)
xdr.Unmarshal(of, mapped) xdr.Unmarshal(file, mapped)
return mapped return mapped
} }

Loading…
Cancel
Save