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 

PSPUptime

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



Joined: 05 Oct 2005
Posts: 123

PostPosted: Wed Oct 05, 2005 7:54 pm    Post subject: PSPUptime Reply with quote

Anyone know how i can make a program that shows the psp's uptime, probably in c/c++, but is this possible in lua ?
Back to top
View user's profile Send private message
SharkOne



Joined: 03 Oct 2005
Posts: 7
Location: France

PostPosted: Wed Oct 05, 2005 11:29 pm    Post subject: Reply with quote

Well, unless for the educational purpose, what would be the point of having a fullscreen, "running-exclusively" program displaying the PSP uptime ?
_________________
--
SharkOne, www.en-mousse.org
Back to top
View user's profile Send private message Visit poster's website
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Thu Oct 06, 2005 2:35 am    Post subject: Reply with quote

no i was thinking after that is made, makeing a mod/hack to add the uptime next to the time in the main menu...
Back to top
View user's profile Send private message
seventoes



Joined: 02 Oct 2005
Posts: 79

PostPosted: Thu Oct 06, 2005 6:34 am    Post subject: Reply with quote

Cant be done...
Back to top
View user's profile Send private message
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Thu Oct 06, 2005 7:04 am    Post subject: Reply with quote

why the hell not... the menu is on the flash drive, then you must be able to edit it... and if you can make a program saying its uptime then incorpatrate it in...
Back to top
View user's profile Send private message
CyberBill



Joined: 26 Jul 2005
Posts: 86
Location: Redmond, WA

PostPosted: Thu Oct 06, 2005 1:48 pm    Post subject: Reply with quote

You do not understand how the PSP works.

Any time you run a program (a UMD game, a homebrew app, ANYTHING) the PSP completely resets itself, resetting the internal clock in the process.

Also, editing the main menu/ PSP Operating System is not easy. I have not seen ANYONE do it with the single exception being the WAB version changer which is extremely primitive.
Back to top
View user's profile Send private message AIM Address MSN Messenger
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Thu Oct 06, 2005 2:43 pm    Post subject: Reply with quote

Most parts of the menu app is encrypted. We cannot encrypt replacements. That's it. The only way would be some buffer overflow in reading one of the non encrypted files.
_________________
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Thu Oct 06, 2005 3:03 pm    Post subject: Reply with quote

Quote:

Any time you run a program (a UMD game, a homebrew app, ANYTHING) the PSP completely resets itself, resetting the internal clock in the process.


i'm not so sure about that...you can maybe derive "uptime" from the tickcounter and the rtc somehow. you can maybe also patch the kernel in a way that it saves the current state of the counter when it resets. it doesnt quite reset "completely" at all unless you turn it off :)

Quote:

Also, editing the main menu/ PSP Operating System is not easy. I have not seen ANYONE do it with the single exception being ...


actually editing the menu is extremely easy, since its based on resource files. naoneo has done it, as have others. displaying something on the screen while the menu is running is also entire possible.

Quote:

... WAB version changer which is extremely primitive.


on that we can agree :o)
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Thu Oct 06, 2005 9:01 pm    Post subject: Reply with quote

groepaz wrote:
Quote:

Any time you run a program (a UMD game, a homebrew app, ANYTHING) the PSP completely resets itself, resetting the internal clock in the process.


i'm not so sure about that...you can maybe derive "uptime" from the tickcounter and the rtc somehow. you can maybe also patch the kernel in a way that it saves the current state of the counter when it resets. it doesnt quite reset "completely" at all unless you turn it off :)

Quote:

Also, editing the main menu/ PSP Operating System is not easy. I have not seen ANYONE do it with the single exception being ...


actually editing the menu is extremely easy, since its based on resource files. naoneo has done it, as have others. displaying something on the screen while the menu is running is also entire possible.

Quote:

... WAB version changer which is extremely primitive.


on that we can agree :o)


nice post, so how would we actually make a program for psp that shows its uptime, to begin with. then we would have to insert the code into the menu... :)
Back to top
View user's profile Send private message
CyberBill



Joined: 26 Jul 2005
Posts: 86
Location: Redmond, WA

PostPosted: Fri Oct 07, 2005 3:08 am    Post subject: Reply with quote

Get the tick counter, divide by the tick frequency. Thats uptime. Each time you restart the PSP its counter goes back to 0.

This works the same on most platforms. timeGetTime on the PC for example.

This is all really dumb though, because there is no way you are going to hack the kernel/os like you think you are. Wait until someone else cracks it really nice and open so you have something to work with.
Back to top
View user's profile Send private message AIM Address MSN Messenger
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Fri Oct 07, 2005 3:37 am    Post subject: Reply with quote

indeed. making the uptime thingy is trivial, hacking it into the menu is going to be an expert job :)
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Fri Oct 07, 2005 7:34 am    Post subject: Reply with quote

lol, i can make an uptime app for the comp, but yeh ill wait
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