Editing Game ext plugin

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 14: Line 14:
  5: 4 Parameter: char *, int, char *, int- calls interface 2
  5: 4 Parameter: char *, int, char *, int- calls interface 2
  6: 1 Parameter: uint8 [0x5B0]
  6: 1 Parameter: uint8 [0x5B0]
  7: 3 Parameter: uint8*,int,uint8* - ps2bootparam.dat / factory_process_comp_1x
  7: 3 Parameter: int,int,uint8* - ps2bootparam.dat / factory_process_comp_1x
  8: 0 Parameter: returns uint8
  8: 0 Parameter: returns uint8
  9: 4 Parameter: ignored, char* message, uint8[0x270],{0: Type,+4: 0x10: char * unk  - Install "/dev_bdvd/PS3_GAME/PKGDIR/PKG../INSTALL.PKG" ?
  9: 4 Parameter: ignored, char* message, uint8[0x270],{0: Type,+4: 0x10: char * unk  - Install "/dev_bdvd/PS3_GAME/PKGDIR/PKG../INSTALL.PKG" ?
Line 41: Line 41:
  32: 4 Parameter: uint8 [0x270], char * [0x800], uint64 [2], uint8
  32: 4 Parameter: uint8 [0x270], char * [0x800], uint64 [2], uint8
  33: 1 Parameter: char * titleid? [0x10] - msg auto update? - psn+/login checked.
  33: 1 Parameter: char * titleid? [0x10] - msg auto update? - psn+/login checked.
  34: 1 Parameter: char * pkg_path[0x400] (example: /dev_usb006/test.pkg)
  34: 1 Parameter: char * pkg?_path[0x400]


====Function 1====
====Function 1====
Line 87: Line 87:
  Parameter 2:
  Parameter 2:
  016E0A98  08 00 00 00 01 00 00 22 00 00 00 0B 00 00 00 14 ................
  016E0A98  08 00 00 00 01 00 00 22 00 00 00 0B 00 00 00 14 ................
====Function 34====
<source lang="cpp">
char * pkg_path;
void installPKG_thread()
{
if(game_ext_interface == 0) // test if game_ext_plugin is loaded for interface access
game_ext_interface = (game_ext_plugin_interface *)plugin_GetInterface(View_Find("game_ext_plugin"),1);
game_ext_interface->DoUnk0(); // Load Page
game_ext_interface->DoUnk34(pkg_path); // Execute and install PKG from path
}
void installPKG(char * path)
{
pkg_path = path;
if(xmm0_interface == 0) // getting xmb_plugin xmm0 interface for loading plugin sprx
xmm0_interface = (xmb_plugin_xmm0 *)plugin_GetInterface(View_Find("xmb_plugin"),'XMM0');
xmm0_interface->LoadPlugin3(0x16,installPKG_thread,0); // Thread safe load of game_ext_plugin.sprx (0x16)
}
...
installPKG("/dev_usb006/test.pkg"); // Example
</source>
For more information about classes etc. see [[Talk:Game_ext_plugin|Talk page]]
= Native Events =
GameApp_OnInitGameMain
GameApp_OnActivateGameMain
GameApp_OnCancelGameMain
GameApp_OnInitYconCautionBg
GameApp_OnInitYconCaution1
GameApp_OnActivateYconCaution1
GameApp_OnInitYconCaution2
GameApp_OnActivateYconCaution2
GameApp_OnInitYconCautionText
GameApp_OnInitYconPlaneWaku
GameApp_OnInit3DCaution
GameApp_OnActivate3DCaution
GameApp_OnInit3DCautionText


=Other info=
=Other info=
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)