fix: consoles & dpad being binded to 2 settings
This commit is contained in:
1 parent
02da402490
commit
fed6871356
150 files changed
+19314
-431
No files matched your search
@@ -0,0 +1,88 @@
|
||||
param(
|
||||
[string]$OutDir,
|
||||
[string]$ProjectDir
|
||||
)
|
||||
|
||||
Write-Host "Durango Postbuild: script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
|
||||
|
||||
$directories = @(
|
||||
"Durango\StoreImages",
|
||||
"Common\Media",
|
||||
"Common\music",
|
||||
"Common\res",
|
||||
"DLCImages",
|
||||
"Tutorial",
|
||||
"Durango",
|
||||
"Sound",
|
||||
"Xbox",
|
||||
"DLC",
|
||||
"CU"
|
||||
)
|
||||
|
||||
foreach ($dir in $directories) {
|
||||
New-Item -ItemType Directory -Path (Join-Path $OutDir $dir) -Force | Out-Null
|
||||
}
|
||||
|
||||
$folderCopies = @(
|
||||
@{ Source = "Common\Media\Font"; Dest = "Common\Media\Font" },
|
||||
@{ Source = "Common\res"; Dest = "Common\res" },
|
||||
@{ Source = "DurangoMedia\Sound"; Dest = "Sound" },
|
||||
@{ Source = "DurangoMedia\Tutorial"; Dest = "Tutorial" },
|
||||
@{ Source = "Common\music"; Dest = "Common\music" },
|
||||
@{ Source = "Durango\DLCImages"; Dest = "DLCImages" },
|
||||
@{ Source = "Durango\CU"; Dest = "CU" }
|
||||
)
|
||||
|
||||
foreach ($copy in $folderCopies) {
|
||||
$src = Join-Path $ProjectDir $copy.Source
|
||||
$dst = Join-Path $OutDir $copy.Dest
|
||||
|
||||
if (Test-Path $src) {
|
||||
xcopy /q /y /i /s /e /d "$src" "$dst" 2>$null
|
||||
} else {
|
||||
Write-Host "Durango Postbuild: Folder not found, skipping: $src"
|
||||
}
|
||||
}
|
||||
|
||||
$fileCopies = @(
|
||||
@{ Source = "Common\Media\MediaDurango.arc"; Dest = "Common\Media\MediaDurango.arc" },
|
||||
@{ Source = "Durango\DurangoExtras\xcompress.dll"; Dest = "xcompress.dll" },
|
||||
@{ Source = "Durango\DLCXbox1.cmp"; Dest = "DLCXbox1.cmp" }
|
||||
)
|
||||
|
||||
foreach ($copy in $fileCopies) {
|
||||
$src = Join-Path $ProjectDir $copy.Source
|
||||
$dst = Join-Path $OutDir $copy.Dest
|
||||
if (Test-Path $src) {
|
||||
Copy-Item -Path $src -Destination $dst -Force
|
||||
} else {
|
||||
Write-Host "Durango Postbuild: File not found, skipping: $src"
|
||||
}
|
||||
}
|
||||
|
||||
$deleteDirs = @(
|
||||
"Common\Media\font\RU",
|
||||
"Common\res\TitleUpdate\DLC",
|
||||
"Common\res\TitleUpdate\Audio"
|
||||
)
|
||||
|
||||
foreach ($dir in $deleteDirs) {
|
||||
$path = Join-Path $OutDir $dir
|
||||
if (Test-Path $path) {
|
||||
Remove-Item $path -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
|
||||
$delDirs = @(
|
||||
"Common\Media\font",
|
||||
"Common\Media\font\*",
|
||||
"Common\res\TitleUpdate\GameRules"
|
||||
)
|
||||
|
||||
foreach ($dir in $delDirs) {
|
||||
$path = Join-Path $OutDir $dir
|
||||
if (Test-Path $path) {
|
||||
Get-ChildItem -Path $path -Recurse -Include *.txt, *.abc, *.mcs, "Mojang Font_7.ttf", "Mojang Font_11.ttf", "DF-DotDotGothic16.ttf", "DFTT_R5.TTC", "candadite2.ttf" -File |
|
||||
Remove-Item -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user