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

Function sramPath

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

Source from the content-addressed store, hash-verified

39}
40
41func 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
48func savePath(hash string, snapshot int) string {
49 if snapshot >= 0 {

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…