forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problemswith sceUtilityGetNetParam....

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jogibear9988



Joined: 10 Oct 2006
Posts: 3

PostPosted: Fri Oct 13, 2006 3:59 pm    Post subject: Problemswith sceUtilityGetNetParam.... Reply with quote

I've written this function:

#define MAXNET 100
char getName(int id, char* output)
{
netData data;

strcpy(output, "not avaiable");

int cnt;
for (int i=0;i<MAXNET;i++)
{
if (sceUtilityCheckNetParam(i) != 0)
continue;

cnt++;

if (cnt == id)
{
sceUtilityGetNetParam(i, PSP_NETPARAM_NAME, &data);
strcpy(output, data.asString);
break;
}
}
return 0;
}



now getName(1,aa) shoul return the first nw connection in aa
getName(2,aa) shoul return the second nw connection in aa
and so on.

but it doesn't work!

what did i wrong??
Back to top
View user's profile Send private message
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Fri Oct 13, 2006 6:42 pm    Post subject: Reply with quote

Failure to initialise 'cnt'?
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
jogibear9988



Joined: 10 Oct 2006
Posts: 3

PostPosted: Fri Oct 13, 2006 7:03 pm    Post subject: wah... Reply with quote

wah, i'm an idiot...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group