Is it possible to patch a library trap from HackMaster?
The trap numbers for the library traps start at 0xA800 and go up from there.
For example, I want to patch all of the 'Open' library calls (library calls
with trap number 0xA801), SerOpen(refnum, ...), NetLibOpen, etc..
Other than the trap number, patching library traps should be similar to
patching other traps, but I have tried so far without success. I realize
that after I'm done with my patch I need to call the system dispatcher
routine with a stack that looks like the original stack when the patch was
called. I clean up the stack by replacing the rts at the end of the patch
function with a jump. If I had made a mistake here, I would expect big
problems, but I'm not seeing anything. I don't think the trap is actually
going to my patch routine.
How can I debug this to see if the trap is really going to my patch routine?
Any help would be appreciated,
Todd Cignetti