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

Warn when SGB compatibility is set without old licensee 0x33 #1196

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

Rangi42
Copy link
Contributor

@Rangi42 Rangi42 commented Nov 1, 2023

Fixes #1150

There are three test cases related to this:

  • sgb sets the SGB flag, does not specify the old licensee, but it's OK because the old licensee was already 0x33 (it wasn't before but this PR makes it so)
  • sgb-licensee sets the SGB flag, and specifies the old licensee as 0x69, so it gets a warning
  • sgb-old-licensee sets the SGB flag, does not specify the old licensee, and gets a warning because the old licensee was 0xc5 (new test case for this PR)

@Rangi42 Rangi42 added enhancement Typically new features; lesser priority than bugs rgbfix This affects RGBFIX labels Nov 1, 2023
@Rangi42 Rangi42 requested a review from ISSOtm November 1, 2023 03:38
@Rangi42 Rangi42 added this to the v0.7.0 milestone Nov 1, 2023
ISSOtm
ISSOtm previously requested changes Nov 1, 2023
Copy link
Member

@ISSOtm ISSOtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh cool, that was much simpler than I expected!

src/fix/main.c Outdated Show resolved Hide resolved
@ISSOtm ISSOtm merged commit a64f28d into gbdev:master Nov 2, 2023
24 checks passed
@Rangi42 Rangi42 deleted the sgb-old-licensee branch November 2, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Typically new features; lesser priority than bugs rgbfix This affects RGBFIX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn when --sgb-compatible is passed, but the old licensee code is not 0x33
2 participants