Skip to content

smb2 version correction#9

Merged
telinc1 merged 2 commits intoSMWCentral:mainfrom
CircleFriendo:smb2-version-correction
Nov 9, 2025
Merged

smb2 version correction#9
telinc1 merged 2 commits intoSMWCentral:mainfrom
CircleFriendo:smb2-version-correction

Conversation

@CircleFriendo
Copy link
Contributor

Just joined as part of the new SMB2 Team.

One of the issues we have with SMB2 romhacking is people have several different versions of the SMB2 rom. There are two revisions of SMB2, Rev 0 and Rev A (Revision A is basically a 1.1 with some minor bugfixes), and those versions can also have different iNES headers. Some roms are updated with iNES v2.0 headers.

To alleviate this issue, I've written some logic to correct the version of the SMB2 base rom provided by the user to match what the BPS patch is requiring.

There are two bps patches included that convert Rev 0 <-> Rev A. I've embedded them into the js as Base64 strings. They could just as easily be fetched from the server if that makes more sense. I just wasn't sure how to do that from within the CodePen sandbox.

@telinc1
Copy link
Member

telinc1 commented Nov 8, 2025

Looks like everything works.

I've refactored the code to split the patching logic from the UI logic. I tested it as far as I could, but please re-test it yourself to make sure I haven't broken anything related to the SMB2 logic. Will merge after you confirm that everything is still working fine.

@CircleFriendo
Copy link
Contributor Author

Looks all good here

@telinc1 telinc1 merged commit a47d62c into SMWCentral:main Nov 9, 2025
1 check passed
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.

2 participants