Skip to content

feat: add PSP 2048-byte hunk option for createdvd - #24

Merged
drpetersonfernandes merged 1 commit into
masterfrom
feat/psp-2048-hunk
Nov 24, 2026
Merged

drpetersonfernandes merged 1 commit into
masterfrom
feat/psp-2048-hunk

Conversation

@drpetersonfernandes

Copy link
Copy Markdown
Collaborator

Summary

Adds a PSP 2048 hunk checkbox next to Force CD / Force DVD.

  • When enabled it forces createdvd and appends -hs 2048, matching PPSSPP's recommended PSP ISO layout.
  • The built-in CHDSharp encoder receives the same 2048-byte hunk size, including both verification retries.
  • Force CD, Force DVD and PSP mode are kept mutually consistent; PSP mode is rejected for delta CHDs because the parent hunk size must match.
  • createdvd -hs 2048 was verified with the bundled chdman (header reports Hunk Size 2,048), and a new unit test verifies the in-process encoder writes a 2048-byte hunk.

Verification

  • dotnet build CSharp_CHDStudio.sln -c Release - 0 warnings, 0 errors
  • dotnet test CHDStudio.Tests/CHDStudio.Tests.csproj -c Release - 1333 passed, 0 failed
  • jb inspectcode - 0 warnings, 0 errors

Fixes #21

Forces createdvd -hs 2048 for PSP ISOs, matching PPSSPP's recommended layout, and passes the same hunk size through the built-in CHDSharp encoder and its verification retries. The option is mutually exclusive with Force CD and rejected for delta CHDs.
@drpetersonfernandes
drpetersonfernandes merged commit aa17119 into master Nov 24, 2026
12 checks passed
@drpetersonfernandes
drpetersonfernandes deleted the feat/psp-2048-hunk branch November 24, 2026 03:12
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.

No 2048 hunk size option for creating PSP CHD

1 participant