PK ˜X>7UsbSlimCharge/PK E=7"n„**UsbSlimCharge/README.txtUsbSlimCharge ------------- IMPORTANT NOTE: As the title suggests this is for PSP Slim and is not designed for the old PSP and has not been tested at all on the old PSP, although we would not expect any adverse effects, use at your own risk on the old PSP. Those of you that have tried out Sony's version of the USB charge feature are probably a litle bit dissapointed that you are unable to charge the PSP whenever the PSP is plugged in. Well as I got annoyed with it enough to look into what code does the charging and it turns out that it is possible to charge the PSP without needing USB enabled. Hence here is a plugin for 360 m33 and 371 m33 to allow you to charge the PSP with a normal USB charger or from a PC whenever it is plugged in and the PSP is turned on. Installing ---------- BY USING THIS APPLICATION YOU ARE ACCEPTING RESPONSIBILITY THAT THE CHARGER THAT YOU USE MAY CAUSE DAMAGE TO THE PSP, WE DO NOT BELIEVE THAT THIS IS LIKELY THOUGH BUT IT IS POSSIBLE WITH CHARGERS WHICH ARE NOT WITHIN THE SPEC FOR USB Copy seplugins/UsbSlimCharge.prx to ms0:/seplugins/ and update game.txt and vsh.txt (there is a version in the ZIP with just this plugin in if you do not have any already). Go into recovery mode on the custom firmware (hard reboot and then press R-trigger when booting), go to Plugins and enable the UsbSlimCharge plugin. Usage ----- Once you have done that you should be able to enjoy using the PSP and having it charge at the same time, both in games and in the VSH. Enjoy Noobz PK ˜X>7UsbSlimCharge/seplugins/PK ¯¥:7Ï]+"" UsbSlimCharge/seplugins/game.txtms0:/seplugins/UsbSlimCharge.prx PK B¥:7qŽŸ  )UsbSlimCharge/seplugins/UsbSlimCharge.prxELF ÿ40¢4 (`@€¸¼ðÿ½'±¯°¯!ˆ !€€<<œ„$l¥$$7UsbSlimCharge/src/PK 8¥:7¡„=ØxxUsbSlimCharge/src/main.c #include #include PSP_MODULE_INFO("UsbSlimPwr", 0x1000, 1, 1); PSP_MAIN_THREAD_ATTR(0); int main_thread(SceSize args, void *argp) { int connected = 0; int state = 0; int version = sceKernelDevkitVersion(); // Need to create a loop to ensure that once the cable is removed // and reconnected the charging is restarted for(;;) { // Not very nice, but means that the PSP can still charge // after going into USB mode, otherwise the USB module // stops USB, guess this will probably be patched out in // a future custom firmware, but until then always restart it sceUsbStart(PSP_USBBUS_DRIVERNAME, 0, 0); state = sceUsbGetState(); state &= PSP_USB_CABLE_CONNECTED; if(connected && (state == 0)) { // Stop the Charging of the PSP otherwise it is not // possible to start charging again if(version == 0x03060010) { scePower_driver_90285886(0); } else { scePower_driver_191A3848(0); } connected = 0; } if((connected==0) && state) { // Start the charging of the PSP, if an app wants to allow // charging then below is all that is required to be added // to start it if(version == 0x03060010) { scePower_driver_733F973B(1); } else { scePower_driver_A09FC577(1); } connected = 1; } sceKernelDelayThread(500000); } } int module_start(SceSize args, void *argp) { // Create a thread SceUID thid = sceKernelCreateThread("UsbSlimPwr", main_thread, 25, 64*1024, 0, NULL); if(thid >= 0) { sceKernelStartThread(thid, args, argp); } return 0; } PK Ž897#Þ_rrUsbSlimCharge/src/Makefilerelease: all TARGET = UsbSlimCharge OBJS = main.o scePower_driver.o INCDIR = CFLAGS = -O2 -G0 -Wall CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) LIBDIR = LDFLAGS = LIBS = -lpspusb_driver USE_KERNEL_LIBC = 1 USE_KERNEL_LIBS = 1 BUILD_PRX = 1 PSPSDK=$(shell psp-config --pspsdk-path) include $(PSPSDK)/lib/build_prx.mak PK 8¥:7éÙ½++#UsbSlimCharge/src/scePower_driver.S .set noreorder #include "pspstub.s" STUB_START "scePower_driver",0x00010011,0x00040005 STUB_FUNC 0xA09FC577,scePower_driver_A09FC577 STUB_FUNC 0x191A3848,scePower_driver_191A3848 STUB_FUNC 0x90285886,scePower_driver_90285886 STUB_FUNC 0x733F973B,scePower_driver_733F973B STUB_END PK ˜X>7UsbSlimCharge/PK E=7"n„** ,UsbSlimCharge/README.txtPK ˜X>7ŒUsbSlimCharge/seplugins/PK ¯¥:7Ï]+"" ÂUsbSlimCharge/seplugins/game.txtPK B¥:7qŽŸ  ) "UsbSlimCharge/seplugins/UsbSlimCharge.prxPK j¥:7Ï]+"" ‡UsbSlimCharge/seplugins/vsh.txtPK ˜X>7æUsbSlimCharge/src/PK 8¥:7¡„=Øxx UsbSlimCharge/src/main.cPK Ž897#Þ_rr ÄUsbSlimCharge/src/MakefilePK 8¥:7éÙ½++# nUsbSlimCharge/src/scePower_driver.SPK ÙÚ