Search found 13 matches

by ldqmoon
Tue Jul 29, 2008 1:14 pm
Forum: PSP Development
Topic: what's the meaning of this code from stdlib.c
Replies: 6
Views: 3435

what's the meaning of this code from stdlib.c

#ifdef F_div /* ** ** [func] - div. ** [desc] - ** [entr] - int n; the integer numerator. ** int d; the integer divisor. ** [exit] - div_t; ** [prec] - none. ** [post] - none. ** */ div_t div(int...
by ldqmoon
Sun Jul 13, 2008 4:56 pm
Forum: PSP Development
Topic: Install a bootstrap and return to application... how?
Replies: 144
Views: 54509

I tried the follow code , it's ok. int main_thread(SceSize args, void *argp) { sceKernelDelayThread(10*100000); // Hook exit game function SceModule *mod; mod = sceKernelFindModuleByName("sceLoadExec"); if(mod) apiHoo...
by ldqmoon
Sun Jul 13, 2008 12:40 pm
Forum: PSP Development
Topic: what is " sceKernelSearchModuleByName "
Replies: 4
Views: 2039

I find out that when I call moduleHookFunc function like this: ret = moduleHookFunc(&mainHookSave[x].modfunc, sceKernelSearchModuleByName(mainHookSave[x].modname), mainHookSave[x].libname, mainHookSave[x].nid, mainHookSave[x].func); it always stop here( the red line next), and return 2, it seems...
by ldqmoon
Tue Jul 08, 2008 9:20 pm
Forum: PSP Development
Topic: what is " sceKernelSearchModuleByName "
Replies: 4
Views: 2039

Thank you

Thank you very much! however, I want to hook the key, when I press LEFT, it runs RIGHT, and when I press RIGHT, it runs LEFT. Here is my code. if there no problem with sceKernelFindModuleByName, I don't know why.... this is the main.c of PRX #include <pspctrl.h> #include <psphprm.h> #include <psppow...
by ldqmoon
Sun Jul 06, 2008 7:39 pm
Forum: PSP Development
Topic: what is " sceKernelSearchModuleByName "
Replies: 4
Views: 2039

what is " sceKernelSearchModuleByName "

I found this function used in hook function. but I can't find any explain of it. it's declared like this: extern SceUID sceKernelSearchModuleByName (const char *); I use it in this way: SceUID thid; thid=sceKernelSearchModuleByName(mainHookSave[0].modname); where mainHookSave[o].modname is "sce...
by ldqmoon
Sun Jun 15, 2008 4:47 pm
Forum: PSP Development
Topic: bad request from http request of PSP, why.....
Replies: 4
Views: 1985

oh... it's a Chinese IP, I don't know if it can be open in other country.

But even if I change to another URL, it also get "bad request" .
by ldqmoon
Sun Jun 15, 2008 11:34 am
Forum: PSP Development
Topic: bad request from http request of PSP, why.....
Replies: 4
Views: 1985

bad request from http request of PSP, why.....

I use the code next on PSP to get a page from internet. but it alway reture "400 bad request". I don't know why, it can work well on PC. of cause, I had connected to the wifi. Thanks for your suggestion. int http&#40;void&#41; &#123; // http request char Cmd&#91;512&#93...
by ldqmoon
Sun May 11, 2008 8:17 pm
Forum: PSP Development
Topic: pspdev/sdk "sio" sample from 1.50 kernel to 3.xx k
Replies: 45
Views: 33316

It's a bad news for me :( I found a code for NID finding. u32 libsNameToNid&#40;const char *name&#41; &#123; u8 digest&#91;20&#93;; u32 nid; if&#40;sceKernelUtilsSha1Digest&#40;&#40;u8 *&#41; name, strlen&#40;name&#41;, digest&#41; >= 0&#41; &#...
by ldqmoon
Sun May 11, 2008 5:57 pm
Forum: PSP Development
Topic: pspdev/sdk "sio" sample from 1.50 kernel to 3.xx k
Replies: 45
Views: 33316

Hi J.F thanks for your reply so quick. you mean I need to find out a NID which can used for 3.71? For I don't know much about NID, I don't know how to use it. When I got the NID, need i change the .s file which generated by psp-build-exports? just like the red character in the follow code? STUB_STAR...
by ldqmoon
Sun May 11, 2008 3:30 pm
Forum: PSP Development
Topic: pspdev/sdk "sio" sample from 1.50 kernel to 3.xx k
Replies: 45
Views: 33316

it seems a little late to reply this post :( but I have met a problem of bright set program of sakya. with this code pspDebugScreenPrintf&#40;"Brightness level %i\n", getBrightness&#40;&#41;&#41;; I always get "Brightness level 0 ", it seems the function getBright...
by ldqmoon
Sun Apr 06, 2008 1:17 pm
Forum: PSP Development
Topic: questions about PSP usb sample in SDK
Replies: 2
Views: 1420

questions about PSP usb sample in SDK

Hi these days I try to run usb sample in SDK, the program can compile easily, but it can't run in my psp. my psp use 3.71m33-3 and I added BUILD_PRX=1 PSP_FW_VERSION=371 to the Makefile. I operate it under Fedora8. I want to make a simple program for transmit some data from PC to PSP, and display th...
by ldqmoon
Wed Mar 12, 2008 12:21 am
Forum: PSP Development
Topic: Fedora 7 & toolchain (newlib) build error [Solved]
Replies: 12
Views: 6393

You only need usb libs for the last step, building psplinkusb. If you don't need psplinkusb, you can ignore it, and you're done. If you do want it, you can just run the last step manually (execute scripts/009-psplinkusb.sh). I have a problem with psplinkusb.sh it got error message like: ../scripts/...
by ldqmoon
Tue Dec 04, 2007 1:24 am
Forum: PSP Development
Topic: what't the Operating Sytem's name of PSP?
Replies: 5
Views: 3044

what't the Operating Sytem's name of PSP?

Hi

Maybe this is a stupid question, but I really want to know. what's the name of PSP's OS?

I searched from internet and found a name called XMB, croos media bar. But I think XMB is only a GUI to user, not the real OS. am I right?