Detect PSP Model

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
SPITFIR3
Posts: 16
Joined: Sun Oct 21, 2007 3:25 am

Detect PSP Model

Post by SPITFIR3 »

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.
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

Erm it all depends where and when you want to do it, you don't exactly give much information.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

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.
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

Indeed, and that function is actually now in the pspsdk if you update it.
SPITFIR3
Posts: 16
Joined: Sun Oct 21, 2007 3:25 am

Post by SPITFIR3 »

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.
SPITFIR3
Posts: 16
Joined: Sun Oct 21, 2007 3:25 am

Post by SPITFIR3 »

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
Post Reply