| Show Battery Status in a PRX | |
|
+3๖ĠøŻiŤaŃ๖ FiTzY ..::UnLeasheD::.. 7 posters |
Author | Message |
---|
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Show Battery Status in a PRX Sun Oct 16, 2011 8:26 am | |
| Lol i know nobody will use it but i was bored. If anyone wants to start PSP programming and if someone wants to show the battery status in percentage and minutes, add this C code:
//If battery exist -> show battery status if (scePowerIsBatteryExist()) { //If battery is not charging -> show battery status if (!scePowerIsBatteryCharging()) { /*Display the battery status & set warning colors*/ if (scePowerGetBatteryLifePercent() > 50) //If battery status is more than 50% -> battery status = white { pspDebugScreenSetTextColor(0xFFFFFFF); pspDebugScreenKprintf("Battery Status: %d%% // %d minutes remaining\n", scePowerGetBatteryLifePercent(), scePowerGetBatteryLifeTime()); } if (scePowerGetBatteryLifePercent() < 50 && scePowerGetBatteryLifePercent > 25) //If battery status is less than 50% & more than 25% -> battery status = oragne { pspDebugScreenSetTextColor(0xFF00C8FF); pspDebugScreenKprintf("Battery Status: %d%% // %d minutes remaining\n", scePowerGetBatteryLifePercent(), scePowerGetBatteryLifeTime()); }
if (scePowerGetBatteryLifePercent() < 25) //If battery status is less than 25% -> battery status = red { pspDebugScreenSetTextColor(0xFF0000FF); pspDebugScreenKprintf("Battery Status: %d%% // %d minutes remaining\n", scePowerGetBatteryLifePercent(), scePowerGetBatteryLifeTime()); } } else //appears if the battery is charging { pspDebugScreenPuts("Battery is charging...\n"); } }
else //appears if battery doesn't exist { pspDebugScreenSetTextColor(0xFF0000FF); pspDebugScreenPuts("ERROR: No Battery Inserted!!!\n"); } PS: // and /**/ are comments. The program that you will use will ignore these parts.
Last edited by ..::UnLeasheD::.. on Tue Oct 18, 2011 2:12 pm; edited 2 times in total | |
|
| |
FiTzY Main Developer, Coder
Posts : 1598 Join date : 2011-10-11 Age : 27 Location : Belgium
| Subject: Re: Show Battery Status in a PRX Sun Oct 16, 2011 8:49 am | |
| | |
|
| |
๖ĠøŻiŤaŃ๖ Development Team
Posts : 2516 Join date : 2011-10-11 Age : 26 Location : Skidrow
| Subject: Re: Show Battery Status in a PRX Sun Oct 16, 2011 9:24 am | |
| Nice | |
|
| |
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Fri Oct 28, 2011 2:34 am | |
| You don't even know for what this is, right? | |
|
| |
FiTzY Main Developer, Coder
Posts : 1598 Join date : 2011-10-11 Age : 27 Location : Belgium
| Subject: Re: Show Battery Status in a PRX Fri Oct 28, 2011 3:00 am | |
| | |
|
| |
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Fri Oct 28, 2011 8:11 am | |
| I was talking to Gozitan. | |
|
| |
D@rKXx[IEH] Clan Leader
Posts : 67 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Fri Oct 28, 2011 5:03 pm | |
| Hey leash how did u make a UltraPR I Love it but how did u make it? | |
|
| |
FiTzY Main Developer, Coder
Posts : 1598 Join date : 2011-10-11 Age : 27 Location : Belgium
| Subject: Re: Show Battery Status in a PRX Fri Oct 28, 2011 10:06 pm | |
| | |
|
| |
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Sat Oct 29, 2011 7:20 am | |
| | |
|
| |
SPIKE THE R8 Administrator
Posts : 596 Join date : 2011-10-11 Age : 26 Location : United Kingdom
| Subject: Re: Show Battery Status in a PRX Sat Oct 29, 2011 8:54 am | |
| Gobble de goop Nice tuto leash and I know what it does but I have NO Idea what to do with it. | |
|
| |
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Sat Oct 29, 2011 4:44 pm | |
| Make your own NitePR mod and add this to it. | |
|
| |
D@rKXx[IEH] Clan Leader
Posts : 67 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Tue Nov 01, 2011 3:13 pm | |
| Do i just put the PRX file from the RevJk file of nitePR into the C? | |
|
| |
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Wed Nov 02, 2011 4:07 am | |
| No. You need a PSP compiler (PSPSDK) and the source code of NitePR. | |
|
| |
..::..FrStD-Ch40S..::.. Administrator
Posts : 484 Join date : 2011-10-11 Age : 27 Location : Scetch
| Subject: Re: Show Battery Status in a PRX Sun Dec 04, 2011 4:48 pm | |
| - D@rKXx[IEH] wrote:
- Hey leash how did u make a UltraPR I Love it but how did u make it?
LOL, the BIG secret, can I tell them, leash, or do you prefer to tell them yourself? | |
|
| |
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Tue Dec 06, 2011 12:10 am | |
| do whatever you want | |
|
| |
..::..FrStD-Ch40S..::.. Administrator
Posts : 484 Join date : 2011-10-11 Age : 27 Location : Scetch
| Subject: Re: Show Battery Status in a PRX Tue Dec 06, 2011 1:39 am | |
| well, both UltraPR and DarkFrost, are all pretty much the same, there was another cheat engine (forgot its name) and it's source code was open to the public...
So unleashed and demon450 just coppied that source code, and eddited it, but the difference is unleashed made most of his, and demon450 didnt xP | |
|
| |
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Tue Dec 06, 2011 8:27 am | |
| demon450 copied everything from MKULTRA v10 source code. | |
|
| |
thefatboy Member
Posts : 61 Join date : 2012-06-25
| Subject: Re: Show Battery Status in a PRX Sat Jun 30, 2012 11:32 pm | |
| Thanks Leash, this is very useful, atleast for me... Did Deamon really just copy everything from MKultra? | |
|
| |
..::UnLeasheD::.. Administrator
Posts : 396 Join date : 2011-10-12
| Subject: Re: Show Battery Status in a PRX Sun Jul 01, 2012 7:02 am | |
| | |
|
| |
Sponsored content
| Subject: Re: Show Battery Status in a PRX | |
| |
|
| |
| Show Battery Status in a PRX | |
|