View Single Post
Old 08-24-2012   #142
CaptainCPS-X
Homebrew Developer
 
CaptainCPS-X's Avatar
 
Join Date: Sep 2010
Location: Puerto Rico, U.S.
Posts: 906
Likes: 1,066
Liked 2,021 Times in 512 Posts
Mentioned: 347 Post(s)
Tagged: 0 Thread(s)
Originally Posted by H3avyRa1n View Post
can someone take a look at this line in the source code? I don't get what was intended here:

void loader_sprx(const char* PATH_PRX)
{
sys_prx_id_t prx_id ;
write_message ("Loading a prx ... ");
prx_id = sys_prx_load_module(PATH_PRX,0, NULL);
if (prx_id < CELL_OK) {
write_message ("Failed LOADING\n");
return;
}

I really don't get it.
I haven't read the whole thread but, this part is supposed to initialize a 'sys_prx_id_t' structure / variable named 'prx_id'.

Now, this part: 'prx_id = sys_prx_load_module(PATH_PRX,0, NULL);' will try to load the PRX file and any returned value will be stored in 'prx_id'.

If the returned value into 'prx_id' is lower than 'CELL_OK', that means it is 0, or failed.

SeeYa!
__________________
gamePKG / FB Alpha RL - [ https://github.com/CaptainCPS ]
FB ALPHA DEV TEAM - [ http://neosource.1emu.net ] [ http://www.barryharris.me.uk/ ]
PS3 - [CECH-2501A][NOR][160GB HDD][REBUG CFW 4.41.2 LITE]
CaptainCPS-X is offline   Reply With Quote