diff --git a/Minecraft.Client/Common/Postbuilds/Orbis-postbuild.ps1 b/Minecraft.Client/Common/Postbuilds/Orbis-postbuild.ps1 index 2d256985..506f6c33 100644 --- a/Minecraft.Client/Common/Postbuilds/Orbis-postbuild.ps1 +++ b/Minecraft.Client/Common/Postbuilds/Orbis-postbuild.ps1 @@ -25,13 +25,17 @@ $folderCopies = @( @{ 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 = "Common\Postbuilds\Contents\Orbis\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" } + @{ 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" } ) foreach ($copy in $folderCopies) { - $src = Join-Path $ProjectDir $copy.Source + if ([System.IO.Path]::IsPathRooted($copy.Source)) { + $src = $copy.Source + } else { + $src = Join-Path $ProjectDir $copy.Source + } $dst = Join-Path $OutDir $copy.Dest if (Test-Path $src) {