aldostools / Mamba

Mamba is a payload for PS3 apps that adds support for ISO, netiso, plugins, PS3MAPI, etc. It's derived from Cobra.
GNU General Public License v3.0
35 stars 8 forks source link

[Feature Request] Dynamic Gameboot #4

Open PS3-4K-Pro opened 2 years ago

PS3-4K-Pro commented 2 years ago

@aldostools can the webMAN dynamic gameboot be implemented ? so mamba would be able to identify games in pkg, dvd and bd videos, unlike webMAN which can only identify if the content is mounted through it

aldostools commented 2 years ago

The payload does not have enough free space for include the gameboot code.

The only way that it would be possible is if there is some file that trigger the patch like it's done with PhotoGUI.

The open_hook would create a file wm_request with a /gameboot.ps3 command if certain .xml is accessed, and when the user click on the PKG the gameboot is already patched in memory.

In some sense that would be feasible, but I'm not interested in invest time in that feature.

I just explained how it's possible in case someone else want to implement it.

ghost commented 1 year ago

The current implementation of gameboot in webMAN MOD relies on the game's PARAM.SFO file, which is only present in games installed to the internal hard drive or external USB drive and mounted through webMAN MOD. The gameboot is then dynamically loaded based on the game ID specified in the PARAM.SFO file.

To implement a dynamic gameboot feature that works with games in PKG, DVD, and BD videos, the code would need to be modified to detect these types of media and then load the appropriate gameboot based on some form of identification, such as the file name or metadata. This would require significant changes to the code and could potentially introduce compatibility issues or performance impacts.

aldostools commented 1 year ago

Here are some resources of interest to explore, in case some want to research & implement the requested feature: https://github.com/aldostools/Resources/releases/download/XMB_Randomizers/install_multi_gameboot_req_dev_blind_enabled_for_4.89-4.90.pkg

https://github.com/aldostools/webMAN-MOD/blob/master/include/mount/patch_gameboot.h https://github.com/aldostools/webMAN-MOD/blob/master/include/ps3mapi/ps3mapi.h

For external communication with webMAN MOD is done using the file /dev_hdd0/tmp/wm_request The file is continuously polled and when it is found the content of the file is processed as a web command. https://github.com/aldostools/webMAN-MOD/blob/624a972ddec7a89071bc45f5c3c70e3a29398bfe/include/www/www_client.h#L308

This wm_request file is used by the PhotoGUI feature found in Mamba & Cobra 8.4 to talk with webMAN MOD.