Skip to content

ReStreet: FIFA Street (2012) recompiled for Windows PC, with online play, a launcher with friends, chat and rooms. Bring your own game.

878 B
Raw Blame
function Get-InputSha256 {
    param([Parameter(Mandatory = $true)][string]$Path)
    $stream = [IO.File]::OpenRead($Path)
    $algorithm = [Security.Cryptography.SHA256]::Create()
    try { return [BitConverter]::ToString($algorithm.ComputeHash($stream)).Replace('-', '').ToLowerInvariant() }
    finally { $algorithm.Dispose(); $stream.Dispose() }
}

function Get-CodegenFingerprint {
    param([Parameter(Mandatory = $true)][string[]]$Paths)
    $records = foreach ($path in ($Paths | Sort-Object -Unique)) {
        $absolute = [IO.Path]::GetFullPath($path)
        $absolute + ':' + (Get-InputSha256 $absolute)
    }
    $algorithm = [Security.Cryptography.SHA256]::Create()
    try { return [BitConverter]::ToString($algorithm.ComputeHash([Text.Encoding]::UTF8.GetBytes(($records -join "`n")))).Replace('-', '').ToLowerInvariant() }
    finally { $algorithm.Dispose() }
}