chore: finish orbis dlcs & cleanup postbuilds

This commit is contained in:
2026-08-01 21:33:01 -04:00
parent 366f17669e
commit 04b2a090d0
93 changed files with 60 additions and 30 deletions
+5 -2
View File
@@ -384,7 +384,10 @@ DWORD DLCPack::getFileIndexAt(DLCManager::EDLCType type, const wstring &path, bo
bool DLCPack::hasPurchasedFile(DLCManager::EDLCType type, const wstring &path)
{
if(type == DLCManager::e_DLCType_All)
// str1k3r - return every DLC as "purchased"
return true;
/*if(type == DLCManager::e_DLCType_All)
{
app.DebugPrintf("Unimplemented\n");
#ifndef _CONTENT_PACKAGE
@@ -408,7 +411,7 @@ bool DLCPack::hasPurchasedFile(DLCManager::EDLCType type, const wstring &path)
{
//purchased
return true;
}
}*/
}
void DLCPack::UpdateLanguage()
@@ -3,7 +3,7 @@ param(
[string]$ProjectDir
)
Write-Host "Durango Postbuild script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
Write-Host "Durango Postbuild: script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
$directories = @(
"Durango\StoreImages",
@@ -16,7 +16,7 @@ $directories = @(
"Sound",
"Xbox",
"DLC",
"CU",
"CU"
)
foreach ($dir in $directories) {
@@ -31,7 +31,7 @@ $folderCopies = @(
@{ Source = "DurangoMedia\Tutorial"; Dest = "Tutorial" },
@{ Source = "music"; Dest = "music" },
@{ Source = "Durango\DLCImages"; Dest = "DLCImages" },
@{ Source = "Durango\CU"; Dest = "CU" },
@{ Source = "Durango\CU"; Dest = "CU" }
)
foreach ($copy in $folderCopies) {
@@ -3,16 +3,18 @@ param(
[string]$ProjectDir
)
Write-Host "Orbis Postbuild script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
Write-Host "Orbis Postbuild: script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
$directories = @(
"PS4_GAME\music",
"PS4_GAME\Orbis",
"PS4_GAME\Common",
"PS4_GAME\Common\Media",
"PS4_GAME\Common\Tutorial",
"PS4_GAME\Orbis\Tutorial",
"PS4_GAME\Common\res",
"PS4_GAME\Orbis\Sound"
"PS4_GAME\Orbis\Sound",
"PS4_GAME\Orbis\DLCImages",
"PS4_GAME\Orbis\DLC"
)
foreach ($dir in $directories) {
@@ -23,8 +25,10 @@ $folderCopies = @(
@{ Source = "music"; Dest = "PS4_GAME\music" },
@{ Source = "Common\Media"; Dest = "PS4_GAME\Common\Media" },
@{ Source = "Common\res"; Dest = "PS4_GAME\Common\res" },
@{ Source = "PSVita\Tutorial"; Dest = "PS4_GAME\Common\Tutorial" },
@{ Source = "Orbis\Sound"; Dest = "PS4_GAME\Orbis\Sound" },
@{ Source = "Orbis\Sound"; Dest = "PS4_GAME\Orbis\Sound" },
@{ Source = "OrbisMedia\DLC"; Dest = "PS4_GAME\Orbis\DLC" },
@{ Source = "Orbis\DLCImages"; Dest = "PS4_GAME\Orbis\DLCImages" },
@{ Source = "OrbisMedia\Tutorial"; Dest = "PS4_GAME\Orbis\Tutorial" },
@{ Source = "$env:SCE_ORBIS_SDK_DIR\target\sce_module"; Dest = "PS4_GAME\sce_module" },
@{ Source = "Common\Postbuilds\Contents\Orbis\sce_gls"; Dest = "PS4_GAME\sce_gls" },
@{ Source = "Common\Postbuilds\Contents\Orbis\sce_sys"; Dest = "PS4_GAME\sce_sys" }
@@ -100,4 +104,26 @@ foreach ($dir in $delDirs) {
Remove-Item -Force -ErrorAction SilentlyContinue
}
}
}
}
# Make Orbis PKG
$pkgSrc = Join-Path $OutDir "PS4_GAME"
$genGp4 = Join-Path $tools "gengp4_app.exe"
$pubCmd = Join-Path $tools "orbis-pub-cmd.exe"
$repoRoot = Split-Path ($ProjectDir.TrimEnd('\', '/')) -Parent
$pkgPath = Join-Path $repoRoot "Minecraft.Client.pkg"
$pkgSrc = Join-Path $OutDir "PS4_GAME"
if (Test-Path $pkgPath) {
Remove-Item $pkgPath -Force
}
#if (-not (Test-Path $genGp4)) {
# Write-Host "Orbis Postbuild: gengp4_app.exe not found, skipping PKG creation."
#} elseif (-not (Test-Path $pkgSrc)) {
# Write-Host "Orbis Postbuild: '$pkgSrc' not found, skipping PKG creation."
#} else {
# All the PKG stuff goes here, i couldnt get it working consistently
#}
@@ -3,7 +3,7 @@ param(
[string]$ProjectDir
)
Write-Host "PS3 Postbuild script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
Write-Host "PS3 Postbuild: script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
$directories = @(
"PS3_GAME\USRDIR\music",
@@ -24,7 +24,7 @@ $folderCopies = @(
@{ Source = "Common\res"; Dest = "PS3_GAME\USRDIR\Common\res" },
@{ Source = "PS3Media\DLC"; Dest = "PS3_GAME\USRDIR\DLC" },
@{ Source = "PS3\Sound"; Dest = "PS3_GAME\USRDIR\PS3\Sound" },
@{ Source = "PSVita\Tutorial"; Dest = "PS3_GAME\USRDIR\PS3\Tutorial" }
#@{ Source = "PSVita\Tutorial"; Dest = "PS3_GAME\USRDIR\PS3\Tutorial" }, # str1k3r - softlocks game
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\LICDIR"; Dest = "PS3_GAME\LICDIR" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\TROPDIR"; Dest = "PS3_GAME\TROPDIR" }
)
@@ -40,15 +40,15 @@ foreach ($copy in $folderCopies) {
$fileCopies = @(
@{ Source = "PS3\PS3ProductCodes.bin"; Dest = "PS3_GAME\USRDIR\PS3\PS3ProductCodes.bin" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_DISC.SFB"; Dest = "PS3_DISC.SFB" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\ICON0.PNG"; Dest = "PS3_GAME\ICON0.PNG" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\PARAM.SFO"; Dest = "PS3_GAME\PARAM.SFO" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\PIC1.PNG"; Dest = "PS3_GAME\PIC1.PNG" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_DISC.SFB"; Dest = "PS3_DISC.SFB" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\ICON0.PNG"; Dest = "PS3_GAME\ICON0.PNG" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\PARAM.SFO"; Dest = "PS3_GAME\PARAM.SFO" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\PIC1.PNG"; Dest = "PS3_GAME\PIC1.PNG" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\PS3GAME.BG0"; Dest = "PS3_GAME\PS3GAME.BG0" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\PS3GAME.BG1"; Dest = "PS3_GAME\PS3GAME.BG1" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\PS3GAME.VR0"; Dest = "PS3_GAME\PS3GAME.VR0" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\PS3LOGO.DAT"; Dest = "PS3_GAME\PS3GAME.DAT" },
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\SND0.AT3"; Dest = "PS3_GAME\SND0.AT3" }
@{ Source = "Common\Postbuilds\Contents\PS3\PS3_GAME\SND0.AT3"; Dest = "PS3_GAME\SND0.AT3" }
)
foreach ($copy in $fileCopies) {
@@ -3,7 +3,7 @@ param(
[string]$ProjectDir
)
Write-Host "PSVita Postbuild script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
Write-Host "PSVita Postbuild: script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
$directories = @(
"PSVITA_GAME\music",
@@ -11,7 +11,8 @@ $directories = @(
"PSVITA_GAME\Common",
"PSVITA_GAME\Common\Media",
"PSVITA_GAME\Common\res",
"PSVITA_GAME\Sound"
"PSVITA_GAME\PSVita\Sound",
"PSVITA_GAME\PSVita\Tutorial"
)
foreach ($dir in $directories) {
@@ -24,7 +25,8 @@ $folderCopies = @(
@{ Source = "Common\res"; Dest = "PSVITA_GAME\Common\res" },
@{ Source = "PSVita\Sound"; Dest = "PSVITA_GAME\PSVita\Sound" },
@{ Source = "PSVitaMedia\DLC"; Dest = "PSVITA_GAME\PSVita\DLC" },
@{ Source = "$env:SCE_PSP2_SDK_DIR\target\sce_module"; Dest = "PSVITA_GAME\sce_module" },
@{ Source = "PSVita\Tutorial"; Dest = "PSVITA_GAME\PSVita\Tutorial" },
@{ Source = "$env:SCE_PSP2_SDK_DIR\target\sce_module"; Dest = "PSVITA_GAME\sce_module" },
@{ Source = "Common\Postbuilds\Contents\PSVita\sce_sys"; Dest = "PSVITA_GAME\sce_sys" }
)
@@ -101,7 +103,7 @@ foreach ($dir in $delDirs) {
}
}
# ── VPK ────────────────────────────────────────────────────────────────────
# Make PSVita VPK
$repoRoot = Split-Path ($ProjectDir.TrimEnd('\', '/')) -Parent
$vpkPath = Join-Path $repoRoot "Minecraft.Client.vpk"
$vpkSrc = Join-Path $OutDir "PSVITA_GAME"
@@ -120,5 +122,4 @@ if (-not (Test-Path $sevenZip)) {
& "$sevenZip" a -tzip -mx0 "$vpkPath" *
Pop-Location
Write-Host "PSVita Postbuild: VPK created at '$vpkPath'"
Start-Process explorer.exe "/select,`"$vpkPath`""
}
@@ -3,7 +3,7 @@ param(
[string]$ProjectDir
)
Write-Host "Windows64 Postbuild script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
Write-Host "Windows64 Postbuild: script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
$directories = @(
"music",
@@ -23,7 +23,7 @@ $folderCopies = @(
@{ Source = "Common\res"; Dest = "Common\res" },
@{ Source = "DurangoMedia"; Dest = "Windows64Media" },
@{ Source = "Windows64Media"; Dest = "Windows64Media" },
@{ Source = "PSVita\Tutorial"; Dest = "Windows64Media\Tutorial" },
#@{ Source = "PSVita\Tutorial"; Dest = "Windows64Media\Tutorial" }, # str1k3r - doesnt even work bru
@{ Source = "music"; Dest = "Windows64Media\music" },
@{ Source = "Windows64Media\Sound"; Dest = "Windows64Media\Sound" },
@{ Source = "Common\Postbuilds\Contents\Windows64\redist64"; Dest = "redist64" }
@@ -3,7 +3,7 @@ param(
[string]$ProjectDir
)
Write-Host "Xbox Postbuild script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
Write-Host "Xbox Postbuild: script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
$directories = @(
"res",
@@ -15,7 +15,7 @@ foreach ($dir in $directories) {
}
$copies = @(
@{ Source = "Common\res"; Dest = "res" }
@{ Source = "Common\res"; Dest = "res" }
)
foreach ($copy in $copies) {
@@ -38,9 +38,9 @@ $fileCopies = @(
@{ Source = "Xbox\kinect\speech\nuisp3081"; Dest = "nuisp3081" },
@{ Source = "Xbox\kinect\speech\nuisp3082"; Dest = "nuisp3082" },
@{ Source = "Xbox\kinect\speech\nuisp3084"; Dest = "nuisp3084" },
@{ Source = "XboxMedia\AvatarAwards"; Dest = "AvatarAwards" },
@{ Source = "XboxMedia\XZP\TMSFiles.xzp"; Dest = "TMSFiles.xzp" },
@{ Source = "Common\Tutorial\Tutorial"; Dest = "Tutorial\Tutorial" }
@{ Source = "XboxMedia\AvatarAwards"; Dest = "AvatarAwards" },
@{ Source = "XboxMedia\XZP\TMSFiles.xzp"; Dest = "TMSFiles.xzp" },
@{ Source = "Common\Tutorial\Tutorial"; Dest = "Tutorial\Tutorial" }
)
foreach ($copy in $fileCopies) {
Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.
Binary file not shown.