initial commit

This commit is contained in:
2025-01-18 20:03:40 -06:00
commit f54150c3d2
26 changed files with 1934 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package cachestate
import "s1d3sw1ped/SteamCache2/vfs/vfserror"
type CacheState int
const (
CacheStateHit CacheState = iota
CacheStateMiss
CacheStateNotFound
)
func (c CacheState) String() string {
switch c {
case CacheStateHit:
return "hit"
case CacheStateMiss:
return "miss"
case CacheStateNotFound:
return "not found"
}
panic(vfserror.ErrUnreachable)
}