mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 12:32:05 +01:00
input: Refactoring: Use filepath.Join
This commit is contained in:
parent
3fb9c02e2f
commit
e85c847376
13
genkeys.go
13
genkeys.go
@ -24,6 +24,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -498,12 +499,12 @@ func main() {
|
|||||||
sort.Slice(driverKeyNames, keyNamesLess(driverKeyNames))
|
sort.Slice(driverKeyNames, keyNamesLess(driverKeyNames))
|
||||||
|
|
||||||
for path, tmpl := range map[string]string{
|
for path, tmpl := range map[string]string{
|
||||||
"event/keys.go": eventKeysTmpl,
|
filepath.Join("event", "keys.go"): eventKeysTmpl,
|
||||||
"internal/driver/keys.go": driverKeysTmpl,
|
filepath.Join("internal", "driver", "keys.go"): driverKeysTmpl,
|
||||||
"internal/glfw/keys.go": glfwKeysTmpl,
|
filepath.Join("internal", "glfw", "keys.go"): glfwKeysTmpl,
|
||||||
"internal/uidriver/glfw/keys.go": uidriverGlfwKeysTmpl,
|
filepath.Join("internal", "uidriver", "glfw", "keys.go"): uidriverGlfwKeysTmpl,
|
||||||
"internal/uidriver/js/keys.go": uidriverJsKeysTmpl,
|
filepath.Join("internal", "uidriver", "js", "keys.go"): uidriverJsKeysTmpl,
|
||||||
"keys.go": ebitenKeysTmpl,
|
filepath.Join("keys.go"): ebitenKeysTmpl,
|
||||||
} {
|
} {
|
||||||
f, err := os.Create(path)
|
f, err := os.Create(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user