Skip to content

some kind of switch port that uses the new thing - #433

Draft
cobaltgit wants to merge 14 commits into
ButterscotchRunner:mainfrom
cobaltgit:nsw-round-2
Draft

some kind of switch port that uses the new thing#433
cobaltgit wants to merge 14 commits into
ButterscotchRunner:mainfrom
cobaltgit:nsw-round-2

Conversation

@cobaltgit

Copy link
Copy Markdown
Collaborator
image

Eden shenanigans

@cobaltgit

Copy link
Copy Markdown
Collaborator Author

Where the fuck is my audio

@cobaltgit

Copy link
Copy Markdown
Collaborator Author

NVM i'm stupid

@cobaltgit

Copy link
Copy Markdown
Collaborator Author

Issues:

  • it's upside down and trying to render in widescreen for 4:3 games
  • Deltarune STILL doesn't have sdl2 input fuck knows why

Comment thread src/switch/main.c Outdated
Comment thread CMakeLists.txt
Comment thread CMakeLists.txt
Comment thread src/switch/main.c Outdated
Comment thread CMakeLists.txt Outdated
option(ENABLE_LEGACY_GL "Enable the legacy OpenGL renderer" ON)
option(ENABLE_MODERN_GL "Enable the modern OpenGL renderer" ON)
if(PLATFORM STREQUAL "switch")
# The Switch only supports the modern GL renderer (GLES3 via SDL2)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm like 80% sure that the switch can do desktop OpenGL, so legacy-gl should work.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It could probs work with glad, I'll have a look

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think so, switch doesn't have shared libraries and definitely no shared libGL, so glad won't work.

Comment thread src/switch/main.c Outdated
@cobaltgit

Copy link
Copy Markdown
Collaborator Author

Eden segfaults with OS_WINDOWS but not OS_SWITCH, Ryujinx doesn't boot it at all

@Un1q32

Un1q32 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

do you have real hardware to test with?

@cobaltgit

cobaltgit commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator Author

Nah, I wish I did tho

For legal reasons I am totally lying

Comment thread CMakeLists.txt
add_compile_options(-ffast-math)
endif()

add_compile_definitions(__SWITCH__)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Doesn't the dkp compiler define this by default?

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