/* * SCEIOASSIGN * ----------------------------------------------------------------------- * * */ #include #include #include #include #include #include #include "blit.h" PSP_MODULE_INFO("IOASSIGN", 0x1000, 1, 1); PSP_MAIN_THREAD_ATTR(0); /* Simple thread */ int mainthread(SceSize args, void *argp) { sceKernelDelayThread(3000000); blit_setup(); // sceKernelDelayThread(6*1000*1000); /* while(!sceKernelFindModuleByName("sceUSB_Stor_Boot_Driver"))//("scePaf_Module")) { sceKernelDelayThreadCB(10000); } */ sceIoUnassign("ms0:"); sceIoUnassign("fatms0:"); sceIoUnassign("msstor0p1:"); sceIoAssign("ms0:", "host0:", NULL, IOASSIGN_RDWR, NULL, 0); sceIoAssign("fatms0:", "host0:", NULL, IOASSIGN_RDWR, NULL, 0); sceIoAssign("msstor0p1:", "host0:", NULL, IOASSIGN_RDWR, NULL, 0); while(1) { blit_string(390, 260, "press start"); sceDisplayWaitVblankStart(); } sceKernelSleepThread(); return 0; } /* Entry point */ int module_start(SceSize args, void *argp) { int thid; /* Create a high priority thread */ thid = sceKernelCreateThread("Assign", mainthread, 0x18, 0x1000, 0, NULL); if(thid >= 0) { sceKernelStartThread(thid, args, argp); } /*//*/ return 0; } /* Module stop entry */ int module_stop(SceSize args, void *argp) { sceIoUnassign("ms0:"); return 0; }