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??
Problemswith sceUtilityGetNetParam....
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!
The PSP Homebrew Database needs you!