void module_start() { u16 var; sceIdStorageLookup(0x45,0,&var,2); if((var[0] & 0xF000) != 0) { return 1; } sceWlanDrv_driver_1747351B(&g_14C,0x73C,&g_888,0x15480); return 0; }
int main(void) { unsigned char buffer[0x1e]; /* Buffer */ pspDebugScreenInit(); SetupCallbacks(); pspDebugScreenPrintf("Idstorage sample by harleyg\nThanks to Dark_AleX and Mathieulh\n\n"); /* Read idstorage key 0x050 (serial) */ sceIdStorageLookup(0x050, 0x0, buffer, 0x1e); /* key, offset, buffer, length */ /* Print the serial */ pspDebugScreenPrintf("Serial: %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c", buffer[0], buffer[1], buffer[2], buffer[3], buffer[4], buffer[5], buffer[6], buffer[7], buffer[8], buffer[9], buffer[10], buffer[11], buffer[12], buffer[13], buffer[14], buffer[15], buffer[16], buffer[17], buffer[18], buffer[19], buffer[20], buffer[21], buffer[22], buffer[23], buffer[24], buffer[25], buffer[26], buffer[27], buffer[28], buffer[29]); sceKernelSleepThread(); return 0; }