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

chiaki4deck for modded Nintendo Switch (homebrew) #355

Open
weakvar opened this issue Jun 8, 2024 · 14 comments
Open

chiaki4deck for modded Nintendo Switch (homebrew) #355

weakvar opened this issue Jun 8, 2024 · 14 comments

Comments

@weakvar
Copy link

weakvar commented Jun 8, 2024

It would be really cool if chiaki4deck comes to Nintendo Switch. Nintendo Switch with custom firmware has Homebrew apps. The original version of chiaki has such app (.nro file). Is there any way to port (or compile) chiaki4deck for Switch?

@streetpea
Copy link
Owner

Theoretically if someone was willing to do so. As it stands I don’t have a modded switch to test it out on.

@weakvar
Copy link
Author

weakvar commented Jun 9, 2024

Theoretically if someone was willing to do so. As it stands I don’t have a modded switch to test it out on.

I have one. I think I can help with testing. But in theory, since I have experience in development (mobile), I can do it myself. Gonna try to find out about Homebrew Apps for Switch.

@Calabor-Hoc
Copy link

Calabor-Hoc commented Sep 20, 2024

I need it, too! Current Nintendo switch port of Chiaki lacks many features and hasn't been updated for more than 1 year. Among all of the needed feature is to avoid crack when your ps account has login pin code.

@felixsrg
Copy link

If this becomes a thing, I would also gladly help with testing, both PS4 and PS5, sadly I can't contribute a lot with coding but this project looks awesome and would be perfect on Switch.

@zcah1
Copy link

zcah1 commented Oct 28, 2024

Nintendo switch support please, the switch version is outdated,

@streetpea
Copy link
Owner

I would love to update the switch port but don’t have a modded switch so can’t. Of course, I would be more than happy to merge changes from someone that does.

@xlanor
Copy link

xlanor commented Nov 4, 2024

I have a modded switch. what needs to be done to compile a .nro?

I'm also just coming into the codebase so @streetpea - do you have a checklist of things you'd like done and/or tested? I am happy to assist, I can write C but am not very familiar with homebrew development.

@streetpea
Copy link
Owner

@xlanor the build script for chiaki for switch is here https://github.com/streetpea/chiaki-ng/blob/main/.builds/common.yml

@xlanor
Copy link

xlanor commented Nov 4, 2024

@xlanor the build script for chiaki for switch is here https://github.com/streetpea/chiaki-ng/blob/main/.builds/common.yml

Looking at the source, I see it pointing to chiaki and not chiaki-ng. I assume you are going through a different build process?

I will fiddle with it and let you know how it goes. Possibly over the weekend.

@streetpea
Copy link
Owner

streetpea commented Nov 4, 2024

The things I can think of off the top of my head are:

  • mic support
  • Remote connection via psn
  • Haptics and adaptive triggers setup for dualsense in menu
  • Rumble emulation for haptics
  • add screen for when using non-available device
  • Add gyro reset when requested from lib

All of these things are already updated in the chiaki-ng lib they just need to be updated in the cpp code. The c code should already work I think. The switch code is just for chiaki because chiaki-ng doesn’t have a switch port but it should be the same but in this case would just be chiaki-ng. The CmakeLists.txt for chiaki-ng is already updated for chiaki with the necessary dependencies, though the GUI based dependencies wouldn’t be needed for the switch version as it’s using its own GUI (borealis).

@xlanor
Copy link

xlanor commented Nov 5, 2024

The things I can think of off the top of my head are:

  • mic support
  • Remote connection via psn
  • Haptics and adaptive triggers setup for dualsense in menu
  • Rumble emulation for haptics
  • add screen for when using non-available device
  • Add gyro reset when requested from lib

All of these things are already updated in the chiaki-ng lib they just need to be updated in the cpp code. The c code should already work I think. The switch code is just for chiaki because chiaki-ng doesn’t have a switch port but it should be the same but in this case would just be chiaki-ng. The CmakeLists.txt for chiaki-ng is already updated for chiaki with the necessary dependencies, though the GUI based dependencies wouldn’t be needed for the switch version as it’s using its own GUI (borealis).

I'll try and build it first. the build stuff is a little outdated, I'm just going to tackle it bit by bit. Will keep you posted.

@xlanor
Copy link

xlanor commented Nov 9, 2024

Just an update, the curl changes that was introduced with PSN remote play in lib/CmakeList.txt is not playing well with the custom compiled curl that is supplied by devkitpro for switch homebrew

Trying to recompile it with switch specific settings but running into some issues on that end.

@streetpea
Copy link
Owner

streetpea commented Nov 10, 2024

@xlanor basically just need a curl with websockets support, whether that’s available via the system or using a custom build for remote connection via psn. Websocket support just graduated from experimental to stable (enabled by default) in the latest curl release.

@xlanor
Copy link

xlanor commented Nov 10, 2024

@xlanor basically just need a curl with websockets support, whether that’s available via the system or using a custom build for remote connection via psn. Websocket support just graduated from experimental to stable (enabled by default) in the latest curl release.

@streetpea sorry, I should have been more clear - I'm running into issues compiling curl with switch specific flags that I can see from the PKGBUILD supplied by devkitpro. Will need to research a little more, but it can't seem to find some other libs needed in that environment. Can't use the version that is prebuilt by them as it is an older version compiled without wss and does not have wss by default.

Specifically, I'm failing this particular m4 in the build for curl

https://github.com/curl/curl/blob/b723f6a445b4d5757db915fe9946158e4158def4/acinclude.m4#L1050

On chiaki-ngs side I think if the switch-curl issue is sorted and additional modifications are made to shut off the steam deck specific flags in the build script for switch the build should work fine.

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

No branches or pull requests

6 participants