mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
ebiten: refactoring
This commit is contained in:
parent
6cd655b5ce
commit
6b416d2340
@ -17,6 +17,4 @@
|
|||||||
|
|
||||||
package ebiten
|
package ebiten
|
||||||
|
|
||||||
func isDebug() bool {
|
const isDebug = true
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
@ -17,6 +17,4 @@
|
|||||||
|
|
||||||
package ebiten
|
package ebiten
|
||||||
|
|
||||||
func isDebug() bool {
|
const isDebug = false
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user