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 

"Standardized" Standby Support In C Libraries...

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



Joined: 19 Jun 2005
Posts: 27

PostPosted: Sun Oct 29, 2006 2:17 pm    Post subject: "Standardized" Standby Support In C Libraries... Reply with quote

It seems that a lot of homebrew software does not properly handle resuming from standby mode. It is my understanding that this is caused by the kernel closing all open file handles, and not opening them during the resume operation.

I know there is a sample application that shows how to install the standby/resume callback. However, it seems like the best place to save and restore the state of all of the open files would be in the standard c library.

Special routines in the c library would then be called from the standby/resume callback to save/restore the state of the open file handles...

Of course if an application made a direct call to sceIoOpen() it would be on it's own...

Does this approach make sense or is there a more elegant solution?

-Sharkus

P.S. Anyone know the difference between Standby and Suspend modes?

[/code]
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon Oct 30, 2006 6:28 pm    Post subject: Reply with quote

Yeah, having that in the C library could be useful. If you come up with patches to do it without much cpu & ram overhead we'll certainly consider adding them.
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