RCOXML Script: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
Line 11: Line 11:


==Reference loaders==
==Reference loaders==
{{RCOXML reference loaders}}
{{RCO TOC reference loaders}}


=Example from lftv_tuner_us_en.rco PSP firmware 6.61=
=Example from lftv_tuner_us_en.rco PSP firmware 6.61=

Revision as of 09:04, 26 September 2016

Description

Only one script can be stored inside an .rco file, is indexed in the embedded RCOXML code of the .rco container under the XML element VSMXFile. See Resource Container (RCO) and RCOXML Coding

Is written in PlayStation JavaScript code, and before stored inside the .rco is compiled in VSMX format

The code contains the functions that are available to use by the RCOXML Objects that triggers events with the attribute event:script:

It never was used on any PS3 firmware, none of the PS3 .rco files contains an vsmx script, the format is inherited from PSP so is supposed to work on PS3 too

General concepts

Reference loaders

Template:RCO TOC reference loaders

Example from lftv_tuner_us_en.rco PSP firmware 6.61

This is how the script functions are triggered by the RCOXML Objects, this is a Plane object that has lot of brothers in the XML hierarchy that uses the same method, every event:script: triggers a different function from the VSMX file

Code Sample

And this is what the PlayStation JavaScript functions does

Code Sample