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

Allow padding to coexist with overlay file #1395

Merged
merged 1 commit into from
May 17, 2024

Conversation

Rangi42
Copy link
Contributor

@Rangi42 Rangi42 commented May 13, 2024

This allows RGBLINK -p and -O to coexist. If fixed sections are declared that cover space beyond the overlay file, they may need to be filled with padding. Previously this padding was 0xFF, not intentionally, but because getc(overlayFile) was returning EOF and that -1 value was being treated as unsigned.

Since checking for when the overlay file is finished makes the exact-bank-size checks not technically necessary, those have been downgraded from errors to warnings.

Fixes #1394.

@Rangi42 Rangi42 added enhancement Typically new features; lesser priority than bugs rgblink This affects RGBLINK labels May 13, 2024
@Rangi42 Rangi42 added this to the v0.8.0 milestone May 13, 2024
@Rangi42 Rangi42 requested a review from ISSOtm May 13, 2024 21:05
ISSOtm
ISSOtm previously requested changes May 15, 2024
src/link/output.cpp Outdated Show resolved Hide resolved
src/link/output.cpp Outdated Show resolved Hide resolved
@ISSOtm ISSOtm merged commit 352551d into gbdev:master May 17, 2024
24 checks passed
@Rangi42 Rangi42 deleted the overlay-padding branch May 17, 2024 14:54
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 rgblink This affects RGBLINK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Choose padding byte while using rgblink's overlay feature
2 participants