Skip to content

Fix Switch support#175

Merged
KiritoDv merged 18 commits into
HarbourMasters:developfrom
timschneeb:nx-support
May 28, 2026
Merged

Fix Switch support#175
KiritoDv merged 18 commits into
HarbourMasters:developfrom
timschneeb:nx-support

Conversation

@timschneeb

@timschneeb timschneeb commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Depends on pull request #169 to be merged first. I'll rebase this PR when that one is merged.


This fixes the broken Switch implementation and restores the CI build scripts for the platform.
Scripting is disabled due to missing platform support for tcc.

Needs the Net64DD/libultraship@main-nx-nightly branch to be checked out before compiling.

Test build:
Ghostship-switch.zip


Also, initially I ran into a weird glitch that would lock the camera somewhere out of bounds, even on the title screen. After some troubleshooting that I found out that setting the -O2 or -O3 compiler optimization levels in the CFLAGS causes this issue. It looks like there's undefined behavior somewhere in the C code. I was able to narrow the cause down to the -fstrict-aliasing optimization and disabled it.
(It's also reproducible on the PC build, but it didn't manifest there because it used -O1 by default while the Switch build used -O3).

@timschneeb

Copy link
Copy Markdown
Contributor Author

@timschneeb timschneeb marked this pull request as ready for review May 28, 2026 15:26
@KiritoDv KiritoDv merged commit cd087ae into HarbourMasters:develop May 28, 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.

2 participants