mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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 (
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
@ -498,12 +499,12 @@ func main() {
|
||||
sort.Slice(driverKeyNames, keyNamesLess(driverKeyNames))
|
||||
|
||||
for path, tmpl := range map[string]string{
|
||||
"event/keys.go": eventKeysTmpl,
|
||||
"internal/driver/keys.go": driverKeysTmpl,
|
||||
"internal/glfw/keys.go": glfwKeysTmpl,
|
||||
"internal/uidriver/glfw/keys.go": uidriverGlfwKeysTmpl,
|
||||
"internal/uidriver/js/keys.go": uidriverJsKeysTmpl,
|
||||
"keys.go": ebitenKeysTmpl,
|
||||
filepath.Join("event", "keys.go"): eventKeysTmpl,
|
||||
filepath.Join("internal", "driver", "keys.go"): driverKeysTmpl,
|
||||
filepath.Join("internal", "glfw", "keys.go"): glfwKeysTmpl,
|
||||
filepath.Join("internal", "uidriver", "glfw", "keys.go"): uidriverGlfwKeysTmpl,
|
||||
filepath.Join("internal", "uidriver", "js", "keys.go"): uidriverJsKeysTmpl,
|
||||
filepath.Join("keys.go"): ebitenKeysTmpl,
|
||||
} {
|
||||
f, err := os.Create(path)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user