ReStreet: FIFA Street (2012) recompiled for Windows PC, with online play, a launcher with friends, chat and rooms. Bring your own game.
Fix three high-severity bugs in installer scripts
Claudece26e91e31e4
diff --git a/Installer/PackageInstaller.ps1 b/Installer/PackageInstaller.ps1index 692fc58..b2b18c3 100644--- a/Installer/PackageInstaller.ps1+++ b/Installer/PackageInstaller.ps1@@ -6,7 +6,7 @@ if (Test-Path -LiteralPath $Destination) { throw 'Escolha uma pasta de destino nNew-Item -ItemType Directory -Path $Destination | Out-Null# Only authoring files and public tools belong in the installer package.-foreach ($file in @('BuildFifaStreet.ps1', 'README.md')) {+foreach ($file in @('BuildFifaStreet.ps1', 'BuildIntegrity.ps1', 'README.md')) {Copy-Item -LiteralPath (Join-Path $root $file) -Destination $Destination}$template = Join-Path $Destination 'recomp-template'@@ -17,7 +17,9 @@ foreach ($file in @('CMakeLists.txt', 'CMakePresets.json', 'fifastreet_manifest.foreach ($folder in @('config', 'src')) {New-Item -ItemType Directory -Path (Join-Path $template $folder) | Out-Null}-Copy-Item -LiteralPath (Join-Path $root 'recomp-template\config\fifadllzf_overrides.toml') -Destination (Join-Path $template 'config')+foreach ($toml in @('fifadllzf_overrides.toml', 'footballcompeng_overrides.toml')) {+ Copy-Item -LiteralPath (Join-Path $root "recomp-template\config\$toml") -Destination (Join-Path $template 'config')+}foreach ($file in @('main.cpp', 'fifastreet_app.h', 'stubs.cpp')) {Copy-Item -LiteralPath (Join-Path $root "recomp-template\src\$file") -Destination (Join-Path $template 'src')}diff --git a/Installer/TestInstaller.ps1 b/Installer/TestInstaller.ps1index 6ba6174..c0e835a 100644--- a/Installer/TestInstaller.ps1+++ b/Installer/TestInstaller.ps1@@ -31,7 +31,7 @@ $logPath = Join-Path $env:TEMP ('FifaStreetWrapperTest_' + [guid]::NewGuid().ToSInvoke-BuildTool 'cmd.exe' @('/c', 'echo Test diagnostic 1>&2 & exit /b 0')$failedAsExpected = $falsetry { Invoke-BuildTool 'cmd.exe' @('/c', 'exit /b 7') }-catch { $failedAsExpected = $_.Exception.Message -match 'codigo 7' }+catch { $failedAsExpected = $_.Exception.Message -match 'code 7' }if (!$failedAsExpected) { throw 'Nonzero tool exit code was not preserved' }if ([IO.File]::ReadAllText($logPath + '.native') -notmatch 'Test diagnostic') { throw 'Native stderr was not logged' }Remove-Item -LiteralPath ($logPath + '.native') -Force