| View previous topic :: View next topic |
| Author |
Message |
SPITFIR3
Joined: 21 Oct 2007 Posts: 16
|
Posted: Sun Nov 04, 2007 1:39 am Post subject: Detect PSP Model |
|
|
I'm would like to detect what PSP Model is being used at start up.
I have tried the following:
if (kuKernelGetModel() != PSP_MODEL_SLIM_AND_LITE)
but this don't work.
Thanks. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Nov 04, 2007 2:45 am Post subject: |
|
|
| Erm it all depends where and when you want to do it, you don't exactly give much information. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Sun Nov 04, 2007 3:21 am Post subject: |
|
|
That function is to be called at user mode only.
Well anyways this until 3.71 M33-3. I've patched again the system to allow kernel prx's have syscall exports.
If you are in a kernel prx use sceKernelGetModel atm. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Nov 04, 2007 4:17 am Post subject: |
|
|
| Indeed, and that function is actually now in the pspsdk if you update it. |
|
| Back to top |
|
 |
SPITFIR3
Joined: 21 Oct 2007 Posts: 16
|
Posted: Sun Nov 04, 2007 4:47 am Post subject: |
|
|
Thank you TyRaNiD and moonlight, I appreciate your reply's, I would have replied earlier but forgot my pass.
A little more info on what it is.
It's a prx which loads at power on time and detects which model is running and displays menu's accordingly depending on the PSP model.
It's not executed from XMB only at boot time.
I'll try sceKernelGetModel, and will update the SDK.
Thanks again. |
|
| Back to top |
|
 |
SPITFIR3
Joined: 21 Oct 2007 Posts: 16
|
Posted: Sun Nov 04, 2007 12:30 pm Post subject: |
|
|
Hi moolight, do I have to use a different command to use sceKernelGetModel or is it the same as (kuKernelGetModel() == PSP_MODEL_SLIM_AND_LITE), but just replacing the kuKernelGetModel() function?
Also what header is sceKernelGetModel contained in.
Thanks |
|
| Back to top |
|
 |
|