Site Tools
Sidebar
User's Manual
t2:script_load
script_load
script_load - Load a script file
Description
bool script_load("<filename>.gbc");
Load the script bytecode file named <filename> stored in the SD-Card at /TITAN TWO/MEMSLOT/
.
Parameters
- <filename>: Filename of the bytecode to load. The <filename> must have 8 characters or less.
Return Value
Returns TRUE if the bytecode file was successfully loaded, FALSE
otherwise.
Examples
Example #1 script_load() example
main { // If BUTTON_2 is pressed ... if(event_active(BUTTON_2)) { // ... load the bytecode file "Example". if(script_load("Example.gbc") == FALSE) { printf("Error loading Example.gbc"); } } }
See Also
t2/script_load.txt · Last modified: 2018/12/13 18:44 by J2Kbr