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 

Memory Stick Detector

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



Joined: 28 Dec 2006
Posts: 23

PostPosted: Sat Dec 30, 2006 5:24 am    Post subject: Memory Stick Detector Reply with quote

I'm very new at programming, and I want my program to write and read off of the memory stick, so the first thing I need is a way to tell if the memory stick is in.

What does the code for this look like?

I know I need these three:
Code:
PSP_MODULE_INFO("name", 0x1000, 1, 1);
and
PSP_MAIN_THREAD_ATTR(0);
plus the
PSP_CTRL_MS


but I am not sure how to make it check and display a message. I believe you need to loop, but I am stuck at that.

If somebody can show me code for a memory stick detecting program, then that would be extremely helpful.

Thanks to all that help!

-Sleepy
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Sat Dec 30, 2006 8:32 am    Post subject: Reply with quote

take a look at the MScm lib sample and header files for prototypes
_________________
10011011 00101010 11010111 10001001 10111010
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