Refactor module naming and update references to steamcache2
All checks were successful
Release Tag / release (push) Successful in 9s

- Changed module name from `s1d3sw1ped/SteamCache2` to `s1d3sw1ped/steamcache2` for consistency.
- Updated all import paths and references throughout the codebase to reflect the new module name.
- Adjusted README and Makefile to use the updated module name, ensuring clarity in usage instructions.
This commit is contained in:
2025-09-21 23:10:21 -05:00
parent 46495dc3aa
commit bd123bc63a
15 changed files with 44 additions and 46 deletions

4
vfs/cache/cache.go vendored
View File

@@ -3,8 +3,8 @@ package cache
import (
"io"
"s1d3sw1ped/SteamCache2/vfs"
"s1d3sw1ped/SteamCache2/vfs/vfserror"
"s1d3sw1ped/steamcache2/vfs"
"s1d3sw1ped/steamcache2/vfs/vfserror"
"sync"
"sync/atomic"
)

View File

@@ -7,9 +7,9 @@ import (
"io"
"os"
"path/filepath"
"s1d3sw1ped/SteamCache2/steamcache/logger"
"s1d3sw1ped/SteamCache2/vfs"
"s1d3sw1ped/SteamCache2/vfs/vfserror"
"s1d3sw1ped/steamcache2/steamcache/logger"
"s1d3sw1ped/steamcache2/vfs"
"s1d3sw1ped/steamcache2/vfs/vfserror"
"sort"
"strings"
"sync"
@@ -186,9 +186,7 @@ func (d *DiskFS) init() {
// Extract key from sharded path: remove root and convert sharding back
// Handle both "./disk" and "disk" root paths
rootPath := d.root
if strings.HasPrefix(rootPath, "./") {
rootPath = rootPath[2:] // Remove "./" prefix
}
rootPath = strings.TrimPrefix(rootPath, "./")
relPath := strings.ReplaceAll(npath[len(rootPath)+1:], "\\", "/")
// Extract the original key from the sharded path

View File

@@ -4,9 +4,9 @@ package gc
import (
"context"
"io"
"s1d3sw1ped/SteamCache2/vfs"
"s1d3sw1ped/SteamCache2/vfs/disk"
"s1d3sw1ped/SteamCache2/vfs/memory"
"s1d3sw1ped/steamcache2/vfs"
"s1d3sw1ped/steamcache2/vfs/disk"
"s1d3sw1ped/steamcache2/vfs/memory"
"sync"
"sync/atomic"
"time"

View File

@@ -1,7 +1,7 @@
package memory
import (
"s1d3sw1ped/SteamCache2/vfs"
"s1d3sw1ped/steamcache2/vfs"
"sync"
"sync/atomic"
"time"

View File

@@ -5,8 +5,8 @@ import (
"bytes"
"container/list"
"io"
"s1d3sw1ped/SteamCache2/vfs/types"
"s1d3sw1ped/SteamCache2/vfs/vfserror"
"s1d3sw1ped/steamcache2/vfs/types"
"s1d3sw1ped/steamcache2/vfs/vfserror"
"sort"
"strings"
"sync"

View File

@@ -3,7 +3,7 @@ package vfs
import (
"io"
"s1d3sw1ped/SteamCache2/vfs/types"
"s1d3sw1ped/steamcache2/vfs/types"
)
// VFS defines the interface for virtual file systems

View File

@@ -2,7 +2,7 @@ package warming
import (
"context"
"s1d3sw1ped/SteamCache2/vfs"
"s1d3sw1ped/steamcache2/vfs"
"sync"
"sync/atomic"
"time"