Search found 18 matches

by Mashphealh
Tue Nov 25, 2008 4:40 am
Forum: PSP Development
Topic: My USB plugin doesn't work properly
Replies: 11
Views: 3949

Yes, you don't call original function. Try using this code : int USB_GetState(void) { int k1 = pspSdkSetK1(0); sceDisplayGetBrightness(&curBrightness, 0); sceDisplaySetBrightness(0, 0); pspSdkSetK1(k1); return sceUsbGetState(); } int USB_Stop(const char* driverName, int size, void *args) { int k...
by Mashphealh
Wed Oct 29, 2008 5:58 am
Forum: PSP Development
Topic: Read buttons while Hold switch on?
Replies: 4
Views: 2615

If you are trying to do a similar thing as musichold, I can say you that this plugin searches the vsh_module (vshmain). I haven't found a nid in the code, and I haven't looked the code more, so it's all.
by Mashphealh
Mon Sep 08, 2008 4:46 am
Forum: PSP Development
Topic: How can I load an XMB icon?
Replies: 6
Views: 2898

by Mashphealh
Sun Sep 07, 2008 7:14 pm
Forum: PSP Development
Topic: sceNetApctlConnect returns 80410A0D
Replies: 2
Views: 1309

Try calling this two functions before call sceNetApctlConnect. void NetInit(void) { sceNetInit(); sceNetInetInit(); sceNetResolverInit(); sceNetApctlInit(0x5400, 0x30, NULL); } void LoadNetModules&#...
by Mashphealh
Sun Sep 07, 2008 7:00 pm
Forum: PSP Development
Topic: How can I load an XMB icon?
Replies: 6
Views: 2898

Use vlf library.
You find it, on Dark_AleX's resurrection source code.
by Mashphealh
Sun Aug 24, 2008 8:48 am
Forum: PSP Development
Topic: UMD Info help: sceUmdGetDiscInfo(&info)
Replies: 2
Views: 1562

If it's not compile , the reason can be because pspumdinfo it's a typedef struct, so you must write your code thus : printf("UMD SIZE: %d \n",info->size); if (info->type==PSP_UMD_TYPE_GAME ) {printf("UMD TYPE: GAME \n&qu...
by Mashphealh
Sat Aug 09, 2008 9:47 pm
Forum: PSP Development
Topic: dc v6 graphics
Replies: 241
Views: 348025

From dcPatchModule I got : int dcPatchModule(const char *modulename, unsigned int unk, unsigned int addr, unsigned int unkk); Inside the function there is this code : int dcPatchModule(const char *modulename, unsigned int unk, unsigned int addr, unsigned int unkk) &am...
by Mashphealh
Sat Aug 09, 2008 8:18 am
Forum: PSP Development
Topic: dc v6 graphics
Replies: 241
Views: 348025

AFAIK he loads dcman at boot time (pspbtcfg). The format function indeed seems to be only a bridge, the more magic thing is dcPatchModule - but I have yet to inderstand why he also patches when OFW is to be installed.... Hellcat, are you reversed dcPatchModule ? Seems that first, use sceKernelFindM...
by Mashphealh
Sat Aug 09, 2008 3:42 am
Forum: PSP Development
Topic: dc v6 graphics
Replies: 241
Views: 348025

Excuse me, but to use dcManager funcions I've to laod specific prx's? And pspIplUpdate? ( I think that a prx has to load because I've see that the function are exported! ) You have to load dcman.prx located at dc folder \kd, and include in line OBJS of your makefile DcManager.o . But, it's strange....
by Mashphealh
Thu Aug 07, 2008 5:54 am
Forum: PSP Development
Topic: dc v6 graphics
Replies: 241
Views: 348025

I haven't looked the DC6 but it's posible that it uses scePaf or pspGu library for do that.
by Mashphealh
Thu Aug 07, 2008 2:44 am
Forum: PSP Development
Topic: Load PRX from Eboot
Replies: 10
Views: 4278

You also can use this : int LoadStartModuleBuffer&#40;void *buffer, int size, int a2&#41; &#123; SceUID v0 = vshKernelLoadModuleBufferVSH&#40;size, buffer, 0, 0&#41; < 0&#41; return -1; if&#40;v0 < 0&#41; return -1; if&#40;a2 == 0&#41; return sceKernelStartMod...
by Mashphealh
Mon Feb 11, 2008 6:55 pm
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9558

Works perfect, thanks again moonlight ;)
by Mashphealh
Mon Feb 11, 2008 2:03 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9558

Well if you need to get the syscall numbers allocated (and it doesn't do it for you at load time) you could always make a small user mode prx which you load the unload ;) Thanks, but I currently can't even get the M33 SDK working, it keeps showing me errors like these: In file included from dump.c&...
by Mashphealh
Tue Feb 05, 2008 2:34 am
Forum: PSP Development
Topic: run app under PSP/GAME/UPDATE
Replies: 14
Views: 6008

You are missing also sceKernelSleepThread(); .
Write it above of return 0 of the main function and try again.
by Mashphealh
Mon Feb 04, 2008 5:06 am
Forum: PSP Development
Topic: run app under PSP/GAME/UPDATE
Replies: 14
Views: 6008

You must put eboot in vsh mode or user mode. // - Vsh - PSP_MODULE_INFO("Example", 0x0800, 1, 1); PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_VSH); // - User - PSP_MODULE_INFO("Example", 0, 1, 1); PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER); Then the param.sfo of the eboot must be the pa...
by Mashphealh
Fri Nov 30, 2007 5:47 am
Forum: PSP Development
Topic: Disasm 3.72 prx's not possible yet?
Replies: 10
Views: 3905

moonlight wrote:erm, did you decrypt the file? :p
I had not fixed at this xD
by Mashphealh
Fri Nov 30, 2007 4:46 am
Forum: PSP Development
Topic: Disasm 3.72 prx's not possible yet?
Replies: 10
Views: 3905

Search the new prxtool. It will disasm the 3.7x prxs .
by Mashphealh
Wed Nov 28, 2007 4:50 am
Forum: PSP Development
Topic: copy file to Flash0
Replies: 20
Views: 8024

On 3.7x the SceMode isn't 0777. It is 511 or 0511 . I have reversed a small part of kernel addon but now I don't remember the value of SceMode. Try with 511 or 0511. And if you want run the app on vsh mode put the eboot on /psp/game/update . If you don't put it on them, the app should run on user m...