aldostools / webMAN-MOD

Extended services for PS3 console (web server, ftp server, netiso, ntfs, ps3mapi, etc.)
https://aldostools.github.io/webMAN-MOD/
GNU General Public License v3.0
1.3k stars 176 forks source link

[Quetion] Script #1070

Closed LuanTeles closed 5 months ago

LuanTeles commented 5 months ago

Aldo, is there a way to make a command or script that only runs when the gameboot is triggered?

I need to do some commands and a remap right after starting the gameboot, because using ingame.bat or GAME-ID.bat the command is executed when all the resources are already loaded.

For example the remap of the system_plugin.rco, i was using the onxmb.bat to map and the ingame.bat to unmap it, so it was working but we found those problems so i needed to remove it

So i need a way that the remap command is executed only when the game boot process started but still not ingame, is it possible?

aldostools commented 5 months ago

You can run events on specific games creating scripts per title id: /dev_hdd0/tmp/wm_ingame/TITLEID.bat

This script is fired when the poll thread detects that a game has been started. /dev_hdd0/ingame.bat

This script is fired when the poll thread detects a game exit or VSH is loaded. /dev_hdd0/onxmb.bat

NOTE: There could be a small delay between the actual event and the moment when the poll thread detect it.

aldostools commented 5 months ago

I think what you're looking for can only be done with a kernel hook in PS3HEN/ Cobra / Mamba.

LuanTeles commented 5 months ago

You can run events on specific games creating scripts per title id: /dev_hdd0/tmp/wm_ingame/TITLEID.bat

This script is fired when the poll thread detects that a game has been started. /dev_hdd0/ingame.bat

This script is fired when the poll thread detects a game exit or VSH is loaded. /dev_hdd0/onxmb.bat

NOTE: There could be a small delay between the actual event and the moment when the poll thread detect it.

Both TITLEID.bat and ingame.bat are executing the remap when the system_plugin.rco is already loaded ingame, so the remap will not be loaded.

The remap need to be done between the gameboot and game launching.

I think what you're looking for can only be done with a kernel hook in PS3HEN/ Cobra / Mamba.

Ah, not worth the hassle then.

LuanTeles commented 4 months ago

Aldo, i just talked to Nat, seems like it's possible

image