Homebrew WIP SlideNX | Change JoyCon attach/detach sound

Taffy

jdfiehgvrhfvhfjkvgrjhfejvgrjkbjvr
Member
Joined
Mar 3, 2017
Messages
621
Trophies
0
Age
21
Location
Student
XP
1,130
Country
United States
Mother 2 "WOW!" sample sound, here I come

Luckily, I have all of the other earthbound samples at my disposal too.
 

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
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.
 

jonyluke

Well-Known Member
OP
Member
Joined
Aug 22, 2018
Messages
145
Trophies
0
Age
24
XP
1,162
Country
Spain
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
 

nmkd

Well-Known Member
Member
Joined
Oct 25, 2016
Messages
554
Trophies
0
Age
26
XP
775
Country
Germany
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.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
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
 

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
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

jonyluke

Well-Known Member
OP
Member
Joined
Aug 22, 2018
Messages
145
Trophies
0
Age
24
XP
1,162
Country
Spain
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,

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
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

jonyluke

Well-Known Member
OP
Member
Joined
Aug 22, 2018
Messages
145
Trophies
0
Age
24
XP
1,162
Country
Spain
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.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: But I bet that would be more for a flashcart than a consumer repro board.