This commit is contained in:
2025-01-21 11:52:04 -06:00
parent 2be7b117ea
commit 16dce1f0c2
26 changed files with 1602 additions and 405 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)
}