Hacking What exactly is Hook Type

Crass

Rock me Dr. Zaius
OP
Member
Joined
Nov 3, 2006
Messages
1,013
Trophies
1
Location
Oregon
Website
www.ds-scene.net
XP
727
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
199
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,013
Trophies
1
Location
Oregon
Website
www.ds-scene.net
XP
727
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

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Yes uremum didn't tell me about her transition and begged me to make it my background
  • K3Nv2 @ K3Nv2:
    I couldn't hurt his or hers feelings
  • TechieSaru tempBOT:
    TechieSaru has joined the room.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Don't ask him where to get lemonade. ;)
  • K3Nv2 @ K3Nv2:
    Psi fondles big red lemons to make lemonaides
    +1
  • K3Nv2 @ K3Nv2:
    Always wanting my lemons he can't have them
  • K3Nv2 @ K3Nv2:
    Jeb stole bigonyas pants
    +1
  • BigOnYa @ BigOnYa:
    Jokes on you, I don't have any on.... "Cause I'm free.... Free ballin'"
  • SylverReZ @ SylverReZ:
    @BigOnYa, Sounds like you and AncientBoi get along together TOO well.
    +1
  • BigOnYa @ BigOnYa:
    Thank God we are 20 states away from each tho. Kenny's almost neighbors with him.
  • K3Nv2 @ K3Nv2:
    I live in kc you dingus
  • BigOnYa @ BigOnYa:
    Ok still closer to him than me, perv boi
  • BigOnYa @ BigOnYa:
    Not to mention you guys share the same last name.
  • K3Nv2 @ K3Nv2:
    I thought you were Mrs.bigboi
    +2
  • BigOnYa @ BigOnYa:
    Nuh twice divorced, I took my maiden name
  • K3Nv2 @ K3Nv2:
    Mrs. bigancientboi?
    +2
  • BigOnYa @ BigOnYa:
    Ms. now, We divorced.
  • K3Nv2 @ K3Nv2:
    I'd keep the Mrs. He's got more years on you
  • BigOnYa @ BigOnYa:
    The end of this game, in the house, is like Texas chainsaw massacre house, is crazy. I just gotta find Chris n kill him.
  • BigOnYa @ BigOnYa:
    Damn it, Chris was not the original werewolf.
  • K3Nv2 @ K3Nv2:
    I didn't think I'd like these dumb xreals but being able to use my phone while having a big screen floating about is pretty cool
    +1
  • duskfall @ duskfall:
    :yaysp:these emojis are great
    duskfall @ duskfall: :yaysp:these emojis are great