Problemswith sceUtilityGetNetParam....

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
jogibear9988
Posts: 3
Joined: Tue Oct 10, 2006 7:29 pm

Problemswith sceUtilityGetNetParam....

Post by jogibear9988 »

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??
Fanjita
Posts: 217
Joined: Wed Sep 28, 2005 9:31 am

Post by Fanjita »

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!
jogibear9988
Posts: 3
Joined: Tue Oct 10, 2006 7:29 pm

wah...

Post by jogibear9988 »

wah, i'm an idiot...
Post Reply