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

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