Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shadPS4 support creates duplicate games when "Enable Separate Update Folder" is enabled #3959

Open
JupiterJesus opened this issue Feb 19, 2025 · 0 comments
Labels

Comments

@JupiterJesus
Copy link

Bug Description

shadPS4 recently added a feature to keep updates separate from the main game. They are placed in a directory immediately next to the game install, with the name CUSAXXXXX-UPDATE. The naive scanning script implemented in the latest Playnite update finds the EBOOT.BIN in both the main game and the update, adding two games to the library.

I implemented my own scanning script before this update, and already fixed the bug. All I did was add a powershell filter on the packages folder that only accepts directories named CUSA#####. If there are other filename patterns for legitimate ps4 packages, I haven't seen them, but the code could easily be updated to handle them. The relevant code is below. Use it or don't.

[array]$games = Get-ChildItem -LiteralPath $ImportArgs.ScanDirectory -Recurse | Where-Object { $_.DirectoryName -match 'CUSA\d+$' } | Where { $_.Name -eq "ISO.BIN.EDAT" -or $_.Name -eq "EBOOT.BIN" }

To Reproduce

Install a package with shadPS4.
Enable the "Enable Separate Update Folder" in shadPS4 general settings
Install an update package with shadPS4.
Scan for PS4 packages.

Diagnostics ID

9c6934f0-c6d5-45e2-a142-44bd98c12198

Screenshots

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant