Go Back  
Reply
 
Thread Tools
Old 08-24-2012   #141
stussy1
 
stussy1's Avatar
 
Join Date: Sep 2010
Posts: 1,031
Likes: 699
Liked 263 Times in 191 Posts
Mentioned: 31 Post(s)
Tagged: 0 Thread(s)
lol another 14 pages of crap
has anyone got this working
couldnt be bothered scrolling thru
14 pages
stussy1 is offline   Reply With Quote
Likes: (1)
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
Old 08-24-2012   #143
H3avyRa1n
Senior Member
 
H3avyRa1n's Avatar
 
Join Date: Aug 2011
Posts: 1,269
Likes: 178
Liked 838 Times in 391 Posts
Mentioned: 59 Post(s)
Tagged: 0 Thread(s)
Originally Posted by CaptainCPS-X View Post
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!
but it shouldn't be something like this?

sys_prx_id_t * prx_id
H3avyRa1n is offline   Reply With Quote
Old 08-24-2012   #144
oPolo
Member
 
oPolo's Avatar
 
Join Date: Feb 2011
Posts: 904
Likes: 303
Liked 448 Times in 296 Posts
Mentioned: 79 Post(s)
Tagged: 0 Thread(s)
Originally Posted by H3avyRa1n View Post
Originally Posted by CaptainCPS-X View Post
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!

but it shouldn't be something like this?

sys_prx_id_t * prx_id
No, if you write "sys_prx_id_t * prx_id" you will declare a pointer to a structure, and not an actual struct. You cannot store anything in a pointer(besides the address it points at ~~). We need an actual sys_prx_id_t struct to store values of the members in. We could afterwards make a pointer to a struct as is often done, to access it through a pointer.

The thing with structures is that they can be passed by value in ANSI C in function calls, but that is immensely ineffective, pushing all the members of the struct on the stack before the method call is invoked, etc ( ._.)

So normally you end up passing the structure by reference in function calls, and well, then you work on a structure pointer anyway at that point, as you declared.

So, the later line of code:
prx_id = sys_prx_load_module(PATH_PRX,0, NULL);
Actually returns a struct and not an address to one, I guess (another thing of ANSI C, returning structs by value are also allowed).

Last edited by oPolo; 08-24-2012 at 06:26 PM.
oPolo is online now   Reply With Quote
Likes: (2)
Old 08-24-2012   #145
H3avyRa1n
Senior Member
 
H3avyRa1n's Avatar
 
Join Date: Aug 2011
Posts: 1,269
Likes: 178
Liked 838 Times in 391 Posts
Mentioned: 59 Post(s)
Tagged: 0 Thread(s)
Originally Posted by oPolo View Post
No, if you write "sys_prx_id_t * prx_id" you will declare a pointer to a structure, and not an actual struct. You cannot store anything in a pointer(besides the address it points at ~~). We need an actual sys_prx_id_t struct to store values of the members in. We could afterwards make a pointer to a struct as is often done, to access it through a pointer.

The thing with structures is that they can be passed by value in ANSI C in function calls, but that is immensely ineffective, pushing all the members of the struct on the stack before the method call is invoked, etc ( ._.)

So normally you end up passing the structure by reference in function calls, and well, then you work on a structure pointer anyway at that point, as you declared.
much clearer now,thanks!
H3avyRa1n is offline   Reply With Quote
Old 08-24-2012   #146
AsSiTcH
Senior Member
 
Join Date: Sep 2010
Location: Hell
Posts: 1,860
Likes: 152
Liked 423 Times in 271 Posts
Mentioned: 25 Post(s)
Tagged: 0 Thread(s)
Originally Posted by stussy1 View Post
lol another 14 pages of crap
has anyone got this working
couldnt be bothered scrolling thru
14 pages
Another lazy doochebag. I got it working.
AsSiTcH is offline   Reply With Quote
Likes: (2)
Old 08-24-2012   #147
danixleet
Member
 
Join Date: Jul 2012
Posts: 72
Likes: 0
Liked 36 Times in 22 Posts
Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
It works on my 3.55 DEX ... But i can't get dev_blind via pkg or MM working on dex 4.20, any suggestions... ?
danixleet is offline   Reply With Quote
Old 08-24-2012   #148
hartmann
Apprentice
 
Join Date: Jan 2011
Posts: 17
Likes: 0
Liked 0 Times in 0 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
I tried with fifa 12, and give a error (80010017) back to xmb
hartmann is offline   Reply With Quote
Old 08-24-2012   #149
harryoke
Senior Member
 
harryoke's Avatar
 
Join Date: Aug 2011
Location: Inside your mind
Posts: 1,946
Likes: 1,044
Liked 1,381 Times in 750 Posts
Mentioned: 209 Post(s)
Tagged: 0 Thread(s)
Originally Posted by danixleet View Post
It works on my 3.55 DEX ... But i can't get dev_blind via pkg or MM working on dex 4.20, any suggestions... ?
try ....modified sprx in dex 3.55 then update to dex 4.20 via xmb not recovery...as stated in readme that recovery will replace modified file...load new game via dex bdemu ...downgrade to dex 3.55 see if you have a dump
harryoke is online now   Reply With Quote
Old 08-24-2012   #150
Abkarino
Member
 
Abkarino's Avatar
 
Join Date: Mar 2008
Location: Egypt
Posts: 124
Likes: 5
Liked 97 Times in 39 Posts
Mentioned: 28 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to Abkarino Send a message via Yahoo to Abkarino Send a message via Skype™ to Abkarino
Originally Posted by harryoke View Post
try ....modified sprx in dex 3.55 then update to dex 4.20 via xmb not recovery...as stated in readme that recovery will replace modified file...load new game via dex bdemu ...downgrade to dex 3.55 see if you have a dump
This will not work since updating from XMB will replace all dev_flash files also so we will remove the modified sprx
Abkarino is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 08:51 AM.