forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detect PSP Model

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
SPITFIR3



Joined: 21 Oct 2007
Posts: 16

PostPosted: Sun Nov 04, 2007 1:39 am    Post subject: Detect PSP Model Reply with quote

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
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sun Nov 04, 2007 2:45 am    Post subject: Reply with quote

Erm it all depends where and when you want to do it, you don't exactly give much information.
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sun Nov 04, 2007 3:21 am    Post subject: Reply with quote

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
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sun Nov 04, 2007 4:17 am    Post subject: Reply with quote

Indeed, and that function is actually now in the pspsdk if you update it.
Back to top
View user's profile Send private message
SPITFIR3



Joined: 21 Oct 2007
Posts: 16

PostPosted: Sun Nov 04, 2007 4:47 am    Post subject: Reply with quote

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
View user's profile Send private message
SPITFIR3



Joined: 21 Oct 2007
Posts: 16

PostPosted: Sun Nov 04, 2007 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group