Homebrew WIP SlideNX | Change JoyCon attach/detach sound

  • Thread starter Thread starter jonyluke
  • Start date Start date
  • Views Views 57,099
  • Replies Replies 159
  • Likes Likes 28
Mother 2 "WOW!" sample sound, here I come

Luckily, I have all of the other earthbound samples at my disposal too.
 
attach sound only works if the controller WAS connected. does not work on a newly paired controller or 'asleep' controller and i assume the same goes for a controller that is dead.
 
attach sound only works if the controller WAS connected. does not work on a newly paired controller or 'asleep' controller and i assume the same goes for a controller that is dead.
The module is in its version 0.1 I am aware of these things and will be fixed in the next release
 
Sadly, this sysmodule conflicts with sys-ftpd.

Kind of a shame right now, almost every kip has conflicts. You also can't use sys-ftpd and sys-netcheat at the same time.
 
I have some source code questions, I hope you don't mind.

sysmodules are normal homebrew (nsp/nro) but renamed to kip?
they need to be threaded? (reading your sources, it never unthread it) I suppose modules must be threaded to all work in the background at the same time.
does "ispaused()" used to detect console sleepmode? or stop replacing the sound? I see it's triggered with 2 pressed buttons inside the threaded function, but the pause is done outside of the function so I'm not sure how it knows which thread to pause.

Maybe it's not working yet, and I'm looking at the wrong project to learn how to code sysmodules? but it was small enough to seems interesting to start here :p
 
i'm not complaining. merely trying to give adequate feedback, clearly described. i am extremely happy with this! sorry if i sound like a dick.
 
  • Like
Reactions: jonyluke
I have some source code questions, I hope you don't mind.

sysmodules are normal homebrew (nsp/nro) but renamed to kip?
they need to be threaded? (reading your sources, it never unthread it) I suppose modules must be threaded to all work in the background at the same time.
does "ispaused()" used to detect console sleepmode? or stop replacing the sound? I see it's triggered with 2 pressed buttons inside the threaded function, but the pause is done outside of the function so I'm not sure how it knows which thread to pause.

Maybe it's not working yet, and I'm looking at the wrong project to learn how to code sysmodules? but it was small enough to seems interesting to start here :P
The kip files are like the nro, but apart from that the makefile is different, it is necessary a json file in which you specify access to syscall or process information, also some functions like registerFspLr() in main.c
I think you mean the setPaused() function, is not necessary, i forgot to delete it.
I am very new programming, probably the code is not perfect, but you can use this as a base, or look at the code of other modules that already exist to give you an idea of how they work.

And yes, the module is working.:D
 
Last edited by jonyluke,
Yes, I'll look at more modules and projects to learn more. especially all the json values.
thank you for the answers and info about all the pause functions, I wasn't sure how it was used. so it's not needed here.

thanks for making this module :)
 
  • Like
Reactions: jonyluke
Yes, I'll look at more modules and projects to learn more. especially all the json values.
thank you for the answers and info about all the pause functions, I wasn't sure how it was used. so it's not needed here.

thanks for making this module :)
I delete the function setPaused(), but the function isPaused() it is necessary.
 
ah, okay. thanks.
though, it's never paused as it's init to false. But it might have another use later.

Unrelated, but I'll post here:
I've read the comment above that it has conflict with other sysmodule, so I checked if there were any titleID conflict but all sysmodules have different TitleID.
I made a list here, not sure if there were another list available on switchbrew or somewhere else. Maybe it'll help sysmodule developers to prevent using the same titleID.
It's missing some sysmodules, I'll add when I find their info.
 
Last edited by Cyan,

Site & Scene News

Popular threads in this forum