(hash string, snapshot int)
| 46 | } |
| 47 | |
| 48 | func savePath(hash string, snapshot int) string { |
| 49 | if snapshot >= 0 { |
| 50 | return fmt.Sprintf("%s/.nes/save/%s-%d.dat", homeDir, hash, snapshot) |
| 51 | } |
| 52 | return fmt.Sprintf("%s/.nes/save/%s.dat", homeDir, hash) |
| 53 | } |
| 54 | |
| 55 | func readKey(window *glfw.Window, key glfw.Key) bool { |
| 56 | return window.GetKey(key) == glfw.Press |