Ticket #29 (enhancement)

Opened 2 years ago

Last modified 2 years ago

nickname

Status: closed (fixed)

Reported by: Sakya Assigned to: fraca7
Priority: minor Component: psp2d
Version: current Keywords:
Cc:

Hi[[BR]] I think it would be usefull to have a function to read the nickname set in the PSP dashboard. :)

Change History

09/26/06 16:07:15: Modified by fraca7

  • priority changed from blocker to minor.
  • status changed from new to assigned.
  • component changed from documentation to psp2d.

I don't even know how to do that in C but if it's feasible, I'll have it integrated in pspos.

09/26/06 16:58:44: Modified by Sakya

Hi! Try this. :)

static PyObject *
PyPSP_getNickname(PyObject *self, PyObject *args)
{
	char sVal[256];
	if(sceUtilityGetSystemParamString(PSP_SYSTEMPARAM_ID_STRING_NICKNAME, sVal, 256) != PSP_SYSTEMPARAM_RETVAL_FAIL)
	{
		PyObject *ret;
		ret = PyString_FromString(sVal);
		return ret;
	}
	else
	{
		return Py_None;
	}
}

10/02/06 11:18:20: Modified by fraca7

  • status changed from assigned to closed.
  • resolution set to fixed.

Done; os.getnickname is now available. A more general function os.getsysparam(sysparamid) is available as well but not yet documented.