Usb- change the way pc detects psp

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

Moderators: cheriff, TyRaNiD

Post Reply
septem
Posts: 21
Joined: Wed Aug 29, 2007 7:44 am

Usb- change the way pc detects psp

Post by septem »

Hi! I was wondering if I can change way psp is "introducing" to pc. I want to make to do this so that pc is not recognizing playstation as another drive and I can install new driver for my console on windows. If it's possible I'd like to know how to achieve that. Thx in advance :)

ps: sry for my english :P
septem
Posts: 21
Joined: Wed Aug 29, 2007 7:44 am

Post by septem »

*sry for double post*

I found a way, this is code if someone wants to know how:

Code: Select all

     if (oldButtons != pad.Buttons) {
	    if (pad.Buttons & PSP_CTRL_CROSS) {
		if (state & PSP_USB_ACTIVATED)
		    retVal = sceUsbDeactivate(0x1c8); 
		else
		    retVal = sceUsbActivate(0x1c8);
	    }
	}
0x1c8 in sceUsbActivate/sceUsbDeactivate is default value for psp usb storage so change it, but I'd be careful doing this cause u can make some nice shit in win if u give wrong number... ;)
mplacona
Posts: 28
Joined: Tue Aug 07, 2007 7:07 am

Post by mplacona »

I did't get your point. What are you talking about here?

Cheers
septem
Posts: 21
Joined: Wed Aug 29, 2007 7:44 am

Post by septem »

I needed to use usb in my app to connect psp with pc and to do that i needed to install another driver. So not to lose ability to transfer files (what would happen if I install another driver for psp) I had to change the way psp is detected by pc. I guess psplink does the same (0x1c9 as product id, isn't it?). Got it? :)
Post Reply