Skip to content

fix(achievements): handle single-extent ISO flag - #98

Closed
bobrass wants to merge 1 commit into
Swordpdf:mainfrom
bobrass:codex/ps5sx2-issue83-multi-extent
Closed

bobrass wants to merge 1 commit into
Swordpdf:mainfrom
bobrass:codex/ps5sx2-issue83-multi-extent

Conversation

@bobrass

@bobrass bobrass commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Allow ReadAchievementExecutable() to read a file whose ISO directory record has the multi-extent bit set when the next directory record is not another extent with the same full identifier.
  • Skip zero padding to the next 2048-byte directory block before checking the following record.
  • Continue rejecting adjacent records for the same file so the achievements code does not hash only the first part of a real multi-extent executable.

This addresses the three discs in issue #83, whose SYSTEM.CNF and boot executable records have 0x80 set despite being single-extent files.

Fixes #83.

Validation

The change applies to the current upstream source blob 6c24828cafd290b36fb5f64abf2b52f1d57829d5; git apply --check succeeded. I did not run tests or a build.

Console validation is needed on PS5SX2 2.15 (vk-285-177) with the reporter's three discs: confirm the Achievements tab identifies the boot executable. Please include the PS5 model and exact app/build revision. No disc images need to be uploaded.

@bobrass
bobrass force-pushed the codex/ps5sx2-issue83-multi-extent branch from caafd35 to 03b96b9 Compare October 30, 2026 07:42
@Swordpdf

Copy link
Copy Markdown
Owner

Thanks for this! The fix for #83 is in branch ps5sx2-quickfix (commit 47bb871), and it also went into ps5sx2-241 and ps5sx2-320, so I'm closing this PR in favour of that.

@Swordpdf Swordpdf closed this Nov 15, 2026
Insektaure pushed a commit to Insektaure/PS5SX2 that referenced this pull request Nov 15, 2026
…tent (GitHub Swordpdf#83, PR Swordpdf#98) (AI-assisted)

ReadAchievementExecutable refused any directory record with flag 0x80 (multi-extent), so rebuilt discs whose ISO writer set it
on every single-extent file (Red Dead Revolver, The Simpsons: Hit & Run, Harry Potter and the Philosopher's Stone, Russian
rebuilds; reported by dann1k) got "Could not identify this disc's boot executable." on the shelf's Achievements tab. A flagged
record is now taken as a single extent unless the next record in the directory has the same name (a real multi-extent file,
still refused so that only its first part is never hashed). The change is PR Swordpdf#98 by bobrass, applied unchanged.

ps5/frontend/host/chdscan_test.cpp: ISO images with the boot ELF's records flagged 0x00 and 0x80 (read whole) and one with the
ELF really in two extents (refused). On 2.40's fe_games.cpp the 0x80 case fails; with this change all three pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Insektaure pushed a commit to Insektaure/PS5SX2 that referenced this pull request Nov 15, 2026
…sted)

Their pull requests were ported by hand into the 2.50 commits, so those commits do not carry their names. This adds a
Contributors section that names each of them and their pull request, and the co-author lines below put their names on
this commit: the Polish (Swordpdf#62), Russian (Swordpdf#63) and Ukrainian (Swordpdf#80) translations, the PS2 HDD image settings (Swordpdf#60), Buzz!
buzzer support (Swordpdf#91) and achievements on multi-extent discs (Swordpdf#98). Credits also name the Eden emulator project and
lsfg-vk, whose port of Lossless Scaling's frame generation PS5SX2's is based on.

Co-authored-by: heni0xyz <[email protected]>
Co-authored-by: dann1k <[email protected]>
Co-authored-by: Gtes <[email protected]>
Co-authored-by: phoenixbearded <[email protected]>
Co-authored-by: Shadow1363 <[email protected]>
Co-authored-by: bobrass <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Achievements tab can't identify discs whose files have the multi-extent flag set

2 participants