ebiten: refactoring

This commit is contained in:
Hajime Hoshi 2022-05-22 22:35:03 +09:00
parent 6cd655b5ce
commit 6b416d2340
3 changed files with 3 additions and 7 deletions

View File

@ -17,6 +17,4 @@
package ebiten package ebiten
func isDebug() bool { const isDebug = true
return true
}

View File

@ -17,6 +17,4 @@
package ebiten package ebiten
func isDebug() bool { const isDebug = false
return false
}

View File

@ -124,7 +124,7 @@ func (i *imageDumper) update() error {
} }
if keyname := os.Getenv(envInternalImagesKey); keyname != "" { if keyname := os.Getenv(envInternalImagesKey); keyname != "" {
if isDebug() { if isDebug {
if key, ok := keyNameToKeyCode(keyname); ok { if key, ok := keyNameToKeyCode(keyname); ok {
i.hasDumpInternalImagesKey = true i.hasDumpInternalImagesKey = true
i.dumpInternalImagesKey = key i.dumpInternalImagesKey = key