Open TheRouletteBoi opened 2 years ago
Hi there. Thank you for reminding me of this plugin source, cause you are right and this does not work at all for loading plugins to game process and instead it loads to vsh process. Wonder why I had left it this way and not even tried it (probably because I've added the function directly to sMAN).
I remember I have modified another trainer plugin, which wasn't open sourced. I simply have added syscall41 via hex to exit thread, cause it wasn't properly coded. Let me search for this plugin, so you can take a look at it. Though, from my experience, these plugins still work, even you get a crash.
edit forget about the plugin, cause I cannot access my old hdd. Anyways, I have added gameplugin loading to Cobra with custom syscall, so I can use sMAN to load any plugin to game process. It works like bootplugin loading and was just a matter of copy and paste.
hardcoding the sxit thread should work but there is a caveat with are some particularly larges sprx for GTAV that return 0x80010004 when loading through PS3MAPI_OPCODE_LOAD_PROC_MODULE
Does this only work with your modfified version of cobra ? I say this because you use 'sys_prx_load_module' but wouldn't that load into the vsh process directly?
I'm looking for a method of load sprx into a process without the need to use '_sys_ppu_thread_exit' The reason for that is some sprx plugins I don't have the source for them to add '_sys_ppu_thread_exit' so they work with PS3MAPI_OPCODE_LOAD_PROC_MODULE
Another method I was thinking of is to hook 'load_process' in kernel and change the EBOOT directory to '/dev_hdd0/tmp/...' that way it can load sprx forcefully for some games that have memory limits like GTAV