Hacking Nintendont

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,227
Trophies
2
XP
34,562
Country
Mexico
It seems mostly fine, except for two things:
  • On the second image, I can see two the same IF statement about the quarter clockwise being mentioned in lines 141+ and also at 163+, but in the 163+ section they're commented out. Was this a simple typing mistake? Since in the 1st image it looks fine.
  • I forgot to mention that this line:
    Code:
    if(drcbutton & WIIDRC_BUTTON_R) button |= PAD_TRIGGER_Z;
    Should be commented out (or deleted), since the Z button will now be mapped to the MINUS button.
 
  • Like
Reactions: 77Urmel77

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
what line is that one? the one in your post "code"?

1645806736321.png
 

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,227
Trophies
2
XP
34,562
Country
Mexico
what line is that one? the one in your post "code"?

View attachment 299536
In your "first edit" post, it's located in line 190.
So in line 190 (or around there, depending on how many lines were added by the IF conditions for the trigger stuff) it should be like this:
Code:
(last line of the trigger code here)
if(drcbutton & WIIDRC_BUTTON_MINUS) button |= PAD_TRIGGER_Z;
if(drcbutton & WIIDRC_BUTTON_PLUS) button |= PAD_BUTTON_START;
if(drcbutton & WIIDRC_BUTTON_HOME) goto DoExit;
//write in mapped out buttons
Pad[WiiUGamepadSlot].button = button;
...

(I didn't see the BUTTON_PLUS = START line in your code, so I added it to make sure it's not being overwritten with that of the MINUS button).
 
  • Like
Reactions: 77Urmel77

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,227
Trophies
2
XP
34,562
Country
Mexico
View attachment 299546

I think that part was deleted when I removed the redundant lines of code. plus and minus are flipped if that matters.
Ah that's fine. The lines being flipped doesn't have any real importance when it comes to the compiled code.

here's it complete (forgot about that):

This one has the PLUS/MINUS lines added in?
(I kinda missed this post and only saw it when opening your last response lol)
 
  • Like
Reactions: 77Urmel77

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,227
Trophies
2
XP
34,562
Country
Mexico
I hope it works. if it doesn't, I can always send you the PadReadC.c to look over yourself. I'm using visual studio 2019 to make the changes. ;)
Oh my, that didn't occur to me (modifying the PadRead.C file directly and send it over for a quick compile).
If anything goes wrong, I'll do that instead so it's easier for others to compile if another update does drop.

Thanks!
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
Oh my, that didn't occur to me (modifying the PadRead.C file directly and send it over for a quick compile).
If anything goes wrong, I'll do that instead so it's easier for others to compile if another update does drop.

Thanks!
it does help me learn a little more about modifying code. I've made changes to this ds homebrew before when it was like 8-10 years old using someone's guidance, and it did work. also, I've tested nintendont that I've compiled on my wii u, and it worked without a problem. it was just a normal compile though, no changes to code. it had the current date as the build date. lol
 

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,227
Trophies
2
XP
34,562
Country
Mexico
it does help me learn a little more about modifying code. I've made changes to this ds homebrew before when it was like 8-10 years old using someone's guidance, and it did work. also, I've tested nintendont that I've compiled on my wii u, and it worked without a problem. it was just a normal compile though, no changes to code. it had the current date as the build date. lol
Oh you're compiled your own build of Nintendont as well?
Or you mean you tested the one you just made on your WIiU?
Gotta say tho, giving coding a tackle at 8-10 yo is a feat on its down.
I'm way past those years and I still feel like a noob at best with anything programming-wise.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
not my own build. I just compiled what was on github to see if I could. there's nothing more satisfying than finally compiling something. some apps have given me a lot of trouble just to compile them.
 
  • Like
Reactions: 77Urmel77

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
I don't remember all that's required for nintendont, but I think pacman -S zip and unzip are for the kernel.elf. that's the only thing I can remember when I was trying to compile it for the first time.
 
  • Like
Reactions: 77Urmel77

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,227
Trophies
2
XP
34,562
Country
Mexico
@ShadowOne333 , I just tested it. the buttons have indeed changed with the gamepad. B is jump, select is opening the map, and what was B is now Y (throwing yourself forward). I think you'll be happy with it. :D
Awesome!
I haven't been able to test it yet, been having a hell of a busy weekend.
Which one is the right dol?
This
https://gbatemp.net/threads/nintendont.349258/page-2089#post-9759141

Or this one?
https://gbatemp.net/threads/nintendont.349258/page-2089#post-9759142
 
  • Like
Reactions: 77Urmel77

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,227
Trophies
2
XP
34,562
Country
Mexico
they're both identical. it didn't mention that it would rename the loader.dol to boot.dol in the build window, but it did. I even hex compared them. it's just whichever one you want to use. the second is just a rename.
Neat! I'll download the second one then, and hopefully I can test it in a bit.
Thank you! :D
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87... +1