Post by Rinnegatamante on Nov 20, 2014 17:11:53 GMT 1
Questa è la lista funzioni ufficiale inerente lpp-plugin r208
----------------
Kernel Class
----------------
Kernel.memcpy(u32 addr,u32 source,int size) - Copy block of memory
Kernel.memset(u32 addr,int value,int size) - Fill block of memory
Kernel.memcmp(u32 addr,u32 addr2,int size) - Compare block of memory
Kernel.storeWord(u32 addr,u32 val) - Store Word (Equivalent of _sw C function)
Kernel.loadWord(u32 addr) - Load Word (Equivalent of _lw C function)
----------------
Screen Class
----------------
Screen.debugPrint(int x,int y,string text,u32 color) - Write a text with Debug font
Screen.debugPrintGradient(int x,int y,string text,u32 color1, u32 color2) - Write a gradient text with Debug font
Screen.waitVblankStart(int millisecond) - Wait Display Screen
Screen.clear() - Clear Debug Screen
----------------
Color Class
----------------
Color.new(int R,int G,int B) - Create a new BGR color
Color.getR(int color) - Get R value of a color
Color.getG(int color) - Get G value of a color
Color.getB(int color) - Get B value of a color
----------------
System Class
----------------
System.restart() - Restart interpreter
System.getFileSize(string filename) - Get size in bytes of a file
System.closeFile(int id) - Close a file
System.writeFile(int id, string string,int size) - Write a text in a file
System.readFile(int id,int size) - Read a text from file
System.seekFile(int id,int offset,int position) - Change pointer position in a file (position must be INIT_FILE, END_FILE, CUR_FILE)
System.openFile(string filename,int mode) - Open a file (mode must be PSP_READ, PSP_WRITE, PSP_APPEND, PSP_CREATE)
System.protodofile(string filename) - Temporary dofile/loadmodule replacing - Load a new LUA script restarting interpreter
System.loadModule(string file) - Load and start a PRX module
System.assign(string dev1,string dev2,string dev3) - Assign Device
System.unassign(string dev) - Unassign Device
System.md5sum(string string) - Get crypted MD5 string
System.sha1sum(string string) - Get crypted SHA1 string
System.isPSP() - Check if user is on PSP (1 = PSP, 0 = PSVITA)
System.getModel() - Get PSP Model
System.getTime(int mode) - Get time (mode: 1= hours,2= minutes,3= seconds)
System.getDate(int mode) - Get date (mode: 1= days,2= months,3= years)
System.getFreeSize(string device) - Get free size of selected device
System.getTotalSize(string device) - Get total size of selected device
System.startPBP(string filename) - Start a PBP
System.startPSX(string filename) - Start a PBP with POPS
System.getVersion() - Get firmware version
System.listDirectory() - List a Directory
System.doesFileExist(string file) - Check if file exist
System.renameFile(string file1,string file2) - Rename a File
System.renameDir(string file1,string file2) - Rename a Directory
System.removeFile(string file1,string file2) - Remove a File
System.removeDir(string file1,string file2) - Remove a Directory
System.copyFile(string file1,string file2) - Copy a File
System.copyDir(string file1,string file2) - Copy a Directory
System.createDirectory(string path) - Create a Directory
System.resumeThread() - Resume paused main thread
System.powerIsPowerOnline() - Get Battery status
System.powerIsBatteryExist() - Check if battery exist
System.powerIsBatteryCharging() - Check if battery is in charging
System.powerGetBatteryChargingStatus() - Get charging status
System.powerIsLowBattery() - Check if battery charging status is low
System.powerGetBatteryLifePercent() - Get battery life percent
System.powerGetBatteryLifeTime() - Get battery life time
System.powerGetBatteryTemp() - Get battery temperature
System.powerGetBatteryVolt() - Get battery voltage
----------------
Controls Class
----------------
Controls.read() - Read Controls Buffer
Controls.readPeek() - Peek Controls Buffer
----------------
Controls Methods - Interfacing with PSP buttons
----------------
controls:select
controls:start
controls:up
controls:right
controls:down
controls:left
controls:l
controls:r
controls:triangle
controls:circle
controls:square
controls:home
controls:hold
controls:note
controls:analogX
controls:analogY
controls:buttons
Kernel Class
----------------
Kernel.memcpy(u32 addr,u32 source,int size) - Copy block of memory
Kernel.memset(u32 addr,int value,int size) - Fill block of memory
Kernel.memcmp(u32 addr,u32 addr2,int size) - Compare block of memory
Kernel.storeWord(u32 addr,u32 val) - Store Word (Equivalent of _sw C function)
Kernel.loadWord(u32 addr) - Load Word (Equivalent of _lw C function)
----------------
Screen Class
----------------
Screen.debugPrint(int x,int y,string text,u32 color) - Write a text with Debug font
Screen.debugPrintGradient(int x,int y,string text,u32 color1, u32 color2) - Write a gradient text with Debug font
Screen.waitVblankStart(int millisecond) - Wait Display Screen
Screen.clear() - Clear Debug Screen
----------------
Color Class
----------------
Color.new(int R,int G,int B) - Create a new BGR color
Color.getR(int color) - Get R value of a color
Color.getG(int color) - Get G value of a color
Color.getB(int color) - Get B value of a color
----------------
System Class
----------------
System.restart() - Restart interpreter
System.getFileSize(string filename) - Get size in bytes of a file
System.closeFile(int id) - Close a file
System.writeFile(int id, string string,int size) - Write a text in a file
System.readFile(int id,int size) - Read a text from file
System.seekFile(int id,int offset,int position) - Change pointer position in a file (position must be INIT_FILE, END_FILE, CUR_FILE)
System.openFile(string filename,int mode) - Open a file (mode must be PSP_READ, PSP_WRITE, PSP_APPEND, PSP_CREATE)
System.protodofile(string filename) - Temporary dofile/loadmodule replacing - Load a new LUA script restarting interpreter
System.loadModule(string file) - Load and start a PRX module
System.assign(string dev1,string dev2,string dev3) - Assign Device
System.unassign(string dev) - Unassign Device
System.md5sum(string string) - Get crypted MD5 string
System.sha1sum(string string) - Get crypted SHA1 string
System.isPSP() - Check if user is on PSP (1 = PSP, 0 = PSVITA)
System.getModel() - Get PSP Model
System.getTime(int mode) - Get time (mode: 1= hours,2= minutes,3= seconds)
System.getDate(int mode) - Get date (mode: 1= days,2= months,3= years)
System.getFreeSize(string device) - Get free size of selected device
System.getTotalSize(string device) - Get total size of selected device
System.startPBP(string filename) - Start a PBP
System.startPSX(string filename) - Start a PBP with POPS
System.getVersion() - Get firmware version
System.listDirectory() - List a Directory
System.doesFileExist(string file) - Check if file exist
System.renameFile(string file1,string file2) - Rename a File
System.renameDir(string file1,string file2) - Rename a Directory
System.removeFile(string file1,string file2) - Remove a File
System.removeDir(string file1,string file2) - Remove a Directory
System.copyFile(string file1,string file2) - Copy a File
System.copyDir(string file1,string file2) - Copy a Directory
System.createDirectory(string path) - Create a Directory
System.resumeThread() - Resume paused main thread
System.powerIsPowerOnline() - Get Battery status
System.powerIsBatteryExist() - Check if battery exist
System.powerIsBatteryCharging() - Check if battery is in charging
System.powerGetBatteryChargingStatus() - Get charging status
System.powerIsLowBattery() - Check if battery charging status is low
System.powerGetBatteryLifePercent() - Get battery life percent
System.powerGetBatteryLifeTime() - Get battery life time
System.powerGetBatteryTemp() - Get battery temperature
System.powerGetBatteryVolt() - Get battery voltage
----------------
Controls Class
----------------
Controls.read() - Read Controls Buffer
Controls.readPeek() - Peek Controls Buffer
----------------
Controls Methods - Interfacing with PSP buttons
----------------
controls:select
controls:start
controls:up
controls:right
controls:down
controls:left
controls:l
controls:r
controls:triangle
controls:circle
controls:square
controls:home
controls:hold
controls:note
controls:analogX
controls:analogY
controls:buttons