The source from the sdk seems to work just great on any firmware compiled as an eboot.
I've scammed some lines from it that i thought looked appropriate, it all works great but the only catch is it doesn't work on any other firmwares other then 3.71, please note my final binary is PRX not eboot also. and the way i have it set up is potentialy dangerous and has been taken into consideration.
What could be done to the way i am putting this into my prx to make usb work on all firmwares rather then just 3.71?
i'd post my source but its 6000 lines. (I doubt their sql would like me for that)
Code: Select all
#include <pspusb.h>
#include <pspusbstor.h>
Code: Select all
void usb()
{
//start necessary drivers
LoadStartModule("flash0:/kd/semawm.prx");
LoadStartModule("flash0:/kd/usbstor.prx");
LoadStartModule("flash0:/kd/usbstormgr.prx");
LoadStartModule("flash0:/kd/usbstorms.prx");
LoadStartModule("flash0:/kd/usbstorboot.prx");
sceUsbstorBootSetCapacity(0x800000);
sceUsbStart(PSP_USBBUS_DRIVERNAME, 0, 0);
sceUsbStart(PSP_USBSTOR_DRIVERNAME, 0, 0);
sceUsbActivate(0x1c8);
}
Code: Select all
usb();
and in the stop thread i put sceUsbDeactivate(0x1c8);
Code: Select all
int _stop(SceSize args, void *argp)
{
sceUsbDeactivate(0x1c8);
running = 0;
sceKernelTerminateThread(thid);
return 0;
}