| View previous topic :: View next topic |
| Author |
Message |
Alois2992
Joined: 22 Nov 2007 Posts: 7
|
Posted: Fri Aug 29, 2008 12:02 am Post subject: detect type of psp? |
|
|
Just a simple question: Is there a way to detect the type of the psp the homebrew is running on? I'm dreaming of an exception handler that prints also the psp type to make debuging as easy as possible.
Alois _________________ Sorry for my bad English... I'm still learning |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Fri Aug 29, 2008 12:19 am Post subject: |
|
|
Function is found in kubridge.h which is part of the M33 SDK,
| Code: |
/**
* Gets the model of the PSP from user mode.
* This function is available since 3.60 M33.
* In previous version, use the kernel function sceKernelGetModel
*
* @return one of PspModel values
*/
int kuKernelGetModel(void);
|
To use try something like...
| Code: |
if (kuKernelGetModel() == PSP_MODEL_SLIM_AND_LITE) {
// Slim
}else{
// Fat
}
|
|
|
| Back to top |
|
 |
|