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 

Usb- change the way pc detects psp

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



Joined: 29 Aug 2007
Posts: 21

PostPosted: Sat Sep 01, 2007 3:26 am    Post subject: Usb- change the way pc detects psp Reply with quote

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
Back to top
View user's profile Send private message
septem



Joined: 29 Aug 2007
Posts: 21

PostPosted: Sat Sep 01, 2007 7:07 am    Post subject: Reply with quote

*sry for double post*

I found a way, this is code if someone wants to know how:
Code:
     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... ;)
Back to top
View user's profile Send private message
mplacona



Joined: 07 Aug 2007
Posts: 28

PostPosted: Mon Sep 03, 2007 5:50 pm    Post subject: Reply with quote

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

Cheers
Back to top
View user's profile Send private message
septem



Joined: 29 Aug 2007
Posts: 21

PostPosted: Tue Sep 04, 2007 2:49 am    Post subject: Reply with quote

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? :)
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