| View previous topic :: View next topic |
| Author |
Message |
jogibear9988
Joined: 10 Oct 2006 Posts: 3
|
Posted: Fri Oct 13, 2006 3:59 pm Post subject: Problemswith sceUtilityGetNetParam.... |
|
|
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 |
|
 |
Fanjita
Joined: 28 Sep 2005 Posts: 217
|
Posted: Fri Oct 13, 2006 6:42 pm Post subject: |
|
|
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 |
|
 |
jogibear9988
Joined: 10 Oct 2006 Posts: 3
|
Posted: Fri Oct 13, 2006 7:03 pm Post subject: wah... |
|
|
| wah, i'm an idiot... |
|
| Back to top |
|
 |
|