السلام عليكم
باركولي , منذ يومين وأكثر تم صنع هذا البرنامج
http://www.savefile.com/files/1223149
ضع "المجلد" في مجلد Games وليس الـــ EBOOT.PBP مباشرة , وسترون العداد , أكبس على X ليبدأ العد ... وأكبس على O ليتوقف العد
عداد ؟
هذه أول مرة أقول عداد بالمنابر
آه صح
نسيت أضع السورس كود
شكرا أخوتي
باركولي , منذ يومين وأكثر تم صنع هذا البرنامج
http://www.savefile.com/files/1223149
ضع "المجلد" في مجلد Games وليس الـــ EBOOT.PBP مباشرة , وسترون العداد , أكبس على X ليبدأ العد ... وأكبس على O ليتوقف العد
العداد
هذه أول مرة أقول عداد بالمنابر
آه صح
نسيت أضع السورس كود
كود:
#include <pspdisplay.h> #include <pspctrl.h> #include <pspkernel.h> #include <pspdebug.h> PSP_MODULE_INFO("Zodiac Sprear 003", 0, 1, 1); #define printf pspDebugScreenPrintf /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } int main() { pspDebugScreenInit(); SetupCallbacks(); int counter = 0; int i = 0; SceCtrlData pad; printf("This is my 1st PSP application\n"); printf("press [X] to start the timer"); while(1) { sceCtrlReadBufferPositive(&pad, 1); if(pad.Buttons & PSP_CTRL_CROSS) { break; } } while(1) { sceCtrlReadBufferPositive(&pad, 1); if(pad.Buttons & PSP_CTRL_CIRCLE) { break; } pspDebugScreenClear(); printf("Press [O] To Stop the Timer\n"); printf("Counter: %i", counter); counter++; for(i=0; i<60; i++) { sceDisplayWaitVblankStart(); } } pspDebugScreenClear(); printf("Counter Finished."); printf("Final Count: %i", counter); sceKernelSleepThread(); return 0; }
تعليق