Skip to content

GX2, GX2R: add aggregate headers#449

Open
dkosmari wants to merge 2 commits into
devkitPro:masterfrom
dkosmari:convenience-headers
Open

GX2, GX2R: add aggregate headers#449
dkosmari wants to merge 2 commits into
devkitPro:masterfrom
dkosmari:convenience-headers

Conversation

@dkosmari
Copy link
Copy Markdown
Contributor

@dkosmari dkosmari commented Jun 1, 2026

GX2 is split up into multiple headers with no clear separation of usage (as opposed to coreinit, for example.) In most cases you need multiple headers to accomplish anything, and it's cumbersome to figure out which header is providing the functions and structs you need.

This creates an aggregate header <gx2.h> that just includes all of GX2.
The same was done for GX2R headers, in <gx2r.h>.

This is a common pattern in libraries, to have both:

  • <foo.h>: includes all of foo.
  • <foo/bar.h>: includes only the bar module of foo.

@dkosmari dkosmari changed the title GX2, GX2R: add convenience headers GX2, GX2R: add aggregate headers Jun 2, 2026
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.

1 participant