Task: Rename Assets folder to SPT_Data (#394)
* Rename `Assets` to `SPT_Data` * Added GZ 20+ variant to repeatable quest system #395 * Repeatable code cleanup * Removed PMC level check for repeatable Quest pool generation #395 they will always generate for both GZ variants * Rename `Assets` to `SPT_Data` --------- Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
This commit is contained in:
+1
-4
@@ -2,10 +2,7 @@
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
Server/user/
|
||||
SPTarkov.Server/user
|
||||
SPTarkov.Server/Assets
|
||||
Libraries/SPTarkov.Server.Assets/Assets/checks.dat
|
||||
Libraries/SPTarkov.Server.Assets/SPT_Data/checks.dat
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
$scriptDir = $PSScriptRoot
|
||||
$assetsPath = Join-Path $scriptDir 'Assets'
|
||||
$outputFile = Join-Path $assetsPath 'checks.dat'
|
||||
$sptDataPath = Join-Path $scriptDir 'SPT_Data'
|
||||
$outputFile = Join-Path $sptDataPath 'checks.dat'
|
||||
|
||||
$files = Get-ChildItem -Path $assetsPath -Recurse -File |
|
||||
Where-Object { $_.FullName -notmatch [regex]::Escape((Join-Path $assetsPath 'images')) } |
|
||||
$files = Get-ChildItem -Path $sptDataPath -Recurse -File |
|
||||
Where-Object { $_.FullName -notmatch [regex]::Escape((Join-Path $sptDataPath 'images')) } |
|
||||
Sort-Object FullName
|
||||
|
||||
$hashes = foreach ($file in $files) {
|
||||
@@ -14,7 +14,7 @@ $hashes = foreach ($file in $files) {
|
||||
|
||||
$hashString = [BitConverter]::ToString($hashBytes) -replace '-', ''
|
||||
|
||||
$relativePath = $file.FullName.Substring($assetsPath.Length + 1) -replace '\\', '/'
|
||||
$relativePath = $file.FullName.Substring($sptDataPath.Length + 1) -replace '\\', '/'
|
||||
|
||||
[PSCustomObject]@{
|
||||
Path = $relativePath
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user