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 type of psp?

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



Joined: 22 Nov 2007
Posts: 7

PostPosted: Fri Aug 29, 2008 12:02 am    Post subject: detect type of psp? Reply with quote

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



Joined: 28 Mar 2007
Posts: 78

PostPosted: Fri Aug 29, 2008 12:19 am    Post subject: Reply with quote

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