detect type of psp?

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

Moderators: cheriff, TyRaNiD

Post Reply
Alois2992
Posts: 7
Joined: Thu Nov 22, 2007 11:38 pm

detect type of psp?

Post by Alois2992 »

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
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Function is found in kubridge.h which is part of the M33 SDK,

Code: Select all

/**
 * 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: Select all

if (kuKernelGetModel() == PSP_MODEL_SLIM_AND_LITE) {
	// Slim
}else{
	// Fat
}
Post Reply