Hacking What exactly is Hook Type

Crass

Rock me Dr. Zaius
OP
Member
Joined
Nov 3, 2006
Messages
1,004
Trophies
1
Age
36
Location
Oregon
Website
www.ds-scene.net
XP
596
Country
United States
I know its related to the Ocarina cheats, and that it has to do with when the cheats are initiated into the game code? But can anyone give a techincal answer to what exactly it means, and what the various options in CFG loader mean? Ive scrounged through google and the forum search to find a technical answer, but every thread is basically "I dont know what it means exactly, just that you have to change it sometimes to make cheats work with certain games". Instead of just blindly testing all the options, it would be nice knowing what each one does. Sorry if this has been answered before, its just hard to find the answer.
The options listed in CFG loader are as follows:
  • No Hooks
  • VBI
  • Wii Pad
  • GC Pad
  • GXDraw
  • GXFlush
  • OSSleepThread
  • AXNextFrame
Thanks in advance.
 

PPSainity

Blinded by Science
Member
Joined
Jun 6, 2009
Messages
646
Trophies
0
XP
188
Country
Canada
Hook types are just known places in executing Wii code where you can place a "hook" that allows you to jump to your code and in this particular case, apply memory hack cheats. In example the first hook listed allows the Gecko OS to do it's thing during the Vertical Blanking Interval of the Wii's Video Output. Normally, this is a perfect place to be, but some games will crash or slow down if this hook is used hence the other options.

That's the gist of it. Any real coder out there would probably explain hooks in a more "correct way" but I hope this gives you an idea.

EDIT: Here's the WIKI article on HOOKING, keep you minds out of the gutter
tongue.gif


-[]D
 
  • Like
Reactions: 1 person

Crass

Rock me Dr. Zaius
OP
Member
Joined
Nov 3, 2006
Messages
1,004
Trophies
1
Age
36
Location
Oregon
Website
www.ds-scene.net
XP
596
Country
United States
PPSainity said:
Hook types are just known places in executing Wii code where you can place a "hook" that allows you to jump to your code and in this particular case, apply memory hack cheats. In example the first hook listed allows the Gecko OS to do it's thing during the Vertical Blanking Interval of the Wii's Video Output. Normally, this is a perfect place to be, but some games will crash or slow down if this hook is used hence the other options.

That's the gist of it. Any real coder out there would probably explain hooks in a more "correct way" but I hope this gives you an idea.

EDIT: Here's the WIKI article on HOOKING, keep you minds out of the gutter
tongue.gif


-[]D

Thanks for the quick reply, and the wikipedia link, I am still curious what the other hook types mean exactly.
 
  • Like
Reactions: 1 person

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
usually they get their name from the function that they target. find a game with a .elf in the contents, open the elf in IDA, and search bytes of the hook. It should only find you 1 result in that elf, which should be the function that shares a similar name with the hooktype.


interestingly enough, I wanted to take a screenshot of this to show you an example, and i accidentally found a little "error". here I was looking for the AXNextFrame hook. In the new wheel-of-fortune game, the function "__AXNextFrame" appears to be the target of the hook. But there are 2 instructions in the hook that are reversed in this game. So, if you revers the middle 2 instructions in this hook, you should be able to hook wheel of fortune, and some newer games with this hook.
axnextframe.png
 
  • Like
Reactions: 1 person

You may also like...

General chit-chat
Help Users
  • No one is chatting at the moment.
  • FAST6191 @ FAST6191:
    On a different note entirely I randomly ended up on a hardware mods website. Lot of stuff for the GBA and DS it seems that I had missed entirely.
  • FAST6191 @ FAST6191:
    as well as the option to pay $2 for a surface mount standard fuse
  • Oleboy555 @ Oleboy555:
    i use re vanced
  • K3N1 @ K3N1:
    VPN YouTube premium $15 a year with a Turkey connection lol
  • M4x1mumReZ @ M4x1mumReZ:
    D, E, F, G...
  • cearp @ cearp:
    @FAST6191 - totally agree. not sure the reasons people use vanced/revanced over newpipe.
    I guess it's because of people still wanting to use their yt account (with vanced)?
    +1
  • cearp @ cearp:
    when I use newpipe, I am not signed in, no ads, have exportable watch lists etc... really good.
  • luotesi @ luotesi:
    Does anyone have a golden cheat for D2R v1.0.2.0?Like Money、Exp。
  • M4x1mumReZ @ M4x1mumReZ:
    Look elsewhere or make your own
  • Psionic Roshambo @ Psionic Roshambo:
    With hookers and booze!!!
  • x65943 @ x65943:
    damn that robot just knew to put the whole bottle of ketchup on the hamburger somehow
  • Sonic Angel Knight @ Sonic Angel Knight:
    Or put mustard on hamburger :ninja:
  • x65943 @ x65943:
    we are living in the future
  • K3N1 @ K3N1:
    Yeah cheese is a thing now
  • Julie_Pilgrim @ Julie_Pilgrim:
    ok if sony, xbox or nintendo arent going to e3 then
  • Julie_Pilgrim @ Julie_Pilgrim:
    who the fuck is going???
  • Julie_Pilgrim @ Julie_Pilgrim:
    are they just gonna have like a blank stage or something
  • Veho @ Veho:
    Indie devs.
  • Veho @ Veho:
    Instead of the "big three", you'll have the "little million".
  • Veho @ Veho:
    It will be two minutes per show.
  • Veho @ Veho:
    Instead of Sony holding a two hour conference, there will be sixty small devs holding two minute conferences.
    Veho @ Veho: Instead of Sony holding a two hour conference, there will be sixty small devs holding two minute...