(hash string, snapshot int)
| 39 | } |
| 40 | |
| 41 | func sramPath(hash string, snapshot int) string { |
| 42 | if snapshot >= 0 { |
| 43 | return fmt.Sprintf("%s/.nes/sram/%s-%d.dat", homeDir, hash, snapshot) |
| 44 | } |
| 45 | return fmt.Sprintf("%s/.nes/sram/%s.dat", homeDir, hash) |
| 46 | } |
| 47 | |
| 48 | func savePath(hash string, snapshot int) string { |
| 49 | if snapshot >= 0 { |