|
PS2SDK
PS2 Homebrew Libraries
|
Go to the source code of this file.
Functions | |
| int | LoadELFFromFile (const char *filename, int argc, char *argv[]) |
| int | LoadELFFromFileWithPartition (const char *filename, const char *partition, int argc, char *argv[]) |
ELF Loader functions.
Definition in file elf-loader.h.
|
extern |
|
extern |
Modify argv[0] when partition info should be kept
| filename | path to the file itself |
| partition | block device + partition name |
| argc | Number of arguments. |
| argv | Pointer to array of arguments. |
You should prepare filename and partition before parsing in function
filename should be changed to <fs_type>:/path_to_file_without_mountpoint for example pfs3:/TEST.ELF (where pfs3 is mountpoint name) will become pfs:/TEST.ELF (where pfs - filesystem type)
partition should be in form <block_device><partition_name>: for example hdd0:__common: block_device - can be hdd0:, hdd1: , dvr_hdd0: <partition_name> - name of APA partition on particular block device dont forget about leading ":"
It is not necessary that filename should be on that partition filename - mass:/TEST.ELF partition - pfs:/__common will be valid usage