This plugin will show a blinking low battery indicator. It works by hooking the sceDisplay
syscall and patching sceDisplaySetFrameBuffer()
,
instead of simply modifying the content of the buffer (flickering may show up). It was an exercise for learning how to use PSPSDK,
as well as a way to practice C. For that matter, I have used code for other projects as a way to understand what I was doing.
Some options can be changed on the .ini file, which must be on the same folder with the plugin. If the file cannot be found, it will be generated automatically. The image resizing is a bit odd, it will be changed in the future (probably).
PSPSDK needs to be installed for building, run make
and you are ready to go!
Put battery_icon.prx and battery_icon.ini in the seplugins directory on your PSP Memory Stick.
Open PLUGINS.txt in the same seplugins folder and append this line to the text file:
all, ms0:/seplugins/battery_icon.prx, on
For PSP Go, add this line instead:
all, ef0:/seplugins/battery_icon.prx, on
Reboot your PSP to take effect.
Open game.txt, vsh.txt, pops.txt in the same seplugins folder and append this line to the text files:
ms0:/seplugins/battery_icon.prx 1
For PSP Go, add this line instead to the text files:
ef0:/seplugins/battery_icon.prx 1
Reboot your PSP to take effect.
- PSPSDK sample projects.
- PSP-HUD
- Brightness-Control
- ARK-4 VSH Menu
- Missyhud.prx
- ctrlHook
- PSPSDK
- PSPLibDoc
- PSP Dev Wiki (source from the PSP-PRX-Libraries-Documentation-Project)
- Gamebrew for being my starting point.
- uOFW Team for the hooking libraries (see LICENSE_uOFW).
- hiroi01 for INI Library Portable (see LICENSE_libinip).
- PSP Homebrew Community Discord for helping out.
- Everyone who makes homebrew possible!
Do whatever you want with my code as long as you credit me!