MCPcopy Create free account
hub / github.com/fogleman/nes / savePath

Function savePath

ui/util.go:48–53  ·  view source on GitHub ↗
(hash string, snapshot int)

Source from the content-addressed store, hash-verified

46}
47
48func 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
55func readKey(window *glfw.Window, key glfw.Key) bool {
56 return window.GetKey(key) == glfw.Press

Callers 2

loadMethod · 0.85
saveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…