I'm working on a project that involves redirecting IOP modules loaded from ROM to ones located on a memory card (from a dump from specific, different console revision). This includes PADMAN, MCMAN, etc. I've created a module to redirect ROM0:/ files to MC1:/, and it does work so far. Problem is, the game I'm trying to load with this module intact does an IOP reset pretty early, effectively disabling my redirection module. How can I trap IOP resets to reinject my redirector module? I've looked at the sources for PS2RD and OPL, and the basic process seems to be to hook 2 EE functions and then inject your own modules that need to be stored in kernel RAM before loading the game. Then when the game tries to do an IOP reset, the hooked functions are free to replace certain modules before doing the reset. Am I understanding that correctly?
Any advice would be appreciated.
Any advice would be appreciated.