Pbat application Breakdown
From Ccwiki
[edit]
Pbat Application Breakdown
The Pbat Scripting language is at the very core of BM. It can be a very powerful tool for end users to allow BM to do practically whatever they want within reason. Unfortunately not many people know some of the basics of Pbat. Below is some of the basics to help you understand what goes on in the Pbat world.
the scrpt below is a basic pbat script that will allow you to execute and install an elf. Between the digit chars # are descriptions of each pbat variable.
DO NOT COPY THE PBAT BELOW FOR ACTUAL USE. THE SCRIPT BELOW IS A VISUAL EXAMPLE ONLY!
SET "APP_TITLE" "title" #this line will contain the title of the application you wish to run# SET "APP_VERSION" "version" # version of the application# SET "APP_AUTHOR" "author" #this line should contain the authors name or alias# SET "APP_DESC" "description" #the description of the file (what does it do)# :INSTALL #from this point on the Pbat system uses these parameters to install applications# RCOPY "$PWD$" "$ARG2$/PS2LINK" #the folder name in which you want the application stored to# :RUN LOADEXEC "PBAT" "$BM.BM_PATH$/LOADEXEC.PBT" "$PWD$/PS2LINK.ELF"
example ps2link script: copy and paste friendly.
SET "APP_TITLE" "PS2Link" SET "APP_VERSION" "v1.46" SET "APP_AUTHOR" "PS2DEV.org" SET "APP_DESC" "Run applications and transfer files over network." :INSTALL RCOPY "$PWD$" "$ARG2$/PS2LINK" :RUN LOADEXEC "PBAT" "$BM.BM_PATH$/LOADEXEC.PBT" "$PWD$/PS2LINK.ELF"