Search found 45 matches

by zydeoN
Wed Sep 16, 2009 3:54 am
Forum: PSP Development
Topic: sceIoOpen() doesnt work on flash0?
Replies: 2
Views: 1346

yes, i just had to reassigned it to read/write privileges...
by zydeoN
Mon Sep 14, 2009 7:31 pm
Forum: PSP Development
Topic: sceIoOpen() doesnt work on flash0?
Replies: 2
Views: 1346

sceIoOpen() doesnt work on flash0?

Does anyone know why sceIoOpen() with PSP_O_WRONLY flag doesnt work in flash0 ? I tried sceIoOpen("flash0:/test.txt",PSP_O_TRUNC | PSP_O_CREAT | PSP_O_WRONLY, 0777); But test.txt is only created if i open it in ms0: sceIoOpen("ms0:/test.txt"...
by zydeoN
Fri Sep 11, 2009 2:52 am
Forum: PSP Development
Topic: GU on XMB crash
Replies: 1
Views: 874

Do i have to load the vertex i want do display in user mode ? How do i do that?
by zydeoN
Thu Sep 10, 2009 7:30 pm
Forum: PSP Development
Topic: GU on XMB crash
Replies: 1
Views: 874

GU on XMB crash

Well, i am trying to draw a polygon in the XMB, using GU. So i am using part of the code of MDL, with list in user memory... But when i initialize the psp, it crashes. Here is the source code: http://codepad.org/PHcBqWKz Edit: I guess the problem is in allocating list in user memory. I did this, but...
by zydeoN
Tue Sep 08, 2009 12:03 am
Forum: PSP Development
Topic: Detecting one button input each time
Replies: 14
Views: 4203

I will just had to add this !(pad.Buttons & ...) to all the buttons. Btw, why isnt this working: int pad_ = 0x100000; if(pad.Buttons & pad_) {...} The inside of the brackets isnt being processed. I know this uses a bit mask, but they say Buttons is unsigned int. So the problem here could be ...
by zydeoN
Sun Sep 06, 2009 10:09 pm
Forum: PSP Development
Topic: Detecting one button input each time
Replies: 14
Views: 4203

It doesnt work jojoris
EDIT: Solved. I just had to do:
if(pad.Buttons & PSP_CTRL_RTRIGGER && !(pad.Buttons & PSP_CTRL_SQUARE)) {...}

and this would only be processed if the user didnt press square..
by zydeoN
Sun Sep 06, 2009 9:16 pm
Forum: PSP Development
Topic: Detecting one button input each time
Replies: 14
Views: 4203

but the problem is that if i only put:
if(square pressed) {...}

and if im pressing square and say triangle the code inside the brackets of the if statement is processed anyway and im pressing triangle too...
by zydeoN
Sun Sep 06, 2009 8:33 pm
Forum: PSP Development
Topic: Detecting one button input each time
Replies: 14
Views: 4203

Detecting one button input each time

Is there a way of saying:
If(square is pressed and the others buttons are not being pressed) then...
?

Help
by zydeoN
Sun Aug 09, 2009 8:58 am
Forum: PSP Development
Topic: OSLib in XMB possible?
Replies: 2
Views: 1400

Well i just it could be done, but seems impossible. I tried GU, but can't get my image displayed, could you help? The screen just go blank and nothing happens... #include <malloc.h> #include <pspkernel.h> #include <pspdisplay.h> #include <pspdebug.h> #include <stdio.h> #include <stdlib.h> #include <...
by zydeoN
Sat Aug 08, 2009 10:27 am
Forum: PSP Development
Topic: disable buttons in XMB menu
Replies: 34
Views: 10779

Can you use the oldButtons (or paddata_old) method to avoid the psp executing the thread faster ? I can use it, but in this case of hooking it isnt working. I tried to use this (but it crashes and shutdown): int vshReadButtons&#40;SceCtrlData *pad_data, int count&#41; &#123; int ret, int...
by zydeoN
Fri Aug 07, 2009 10:36 am
Forum: PSP Development
Topic: USB prx problem hook?
Replies: 6
Views: 1933

now i have a weird problem when activating usb. If i toggle usb with my prx and then turn it off, all goes well. But if i toggle the usb again, the xmb automatically starts a usb connection itself (usual usb connection) and gives internal error 80243101. I find out that the problem was activating th...
by zydeoN
Fri Aug 07, 2009 9:51 am
Forum: PSP Development
Topic: OSLib in XMB possible?
Replies: 2
Views: 1400

OSLib in XMB possible?

Is it possible to blit images to XMB with OSLib? I know that it is possible with GU, but it seems kind of hard to learn... So if you know something about it, please tell me
by zydeoN
Thu Aug 06, 2009 7:01 am
Forum: PSP Development
Topic: USB prx problem hook?
Replies: 6
Views: 1933

maybe, i´ll try it.. It works! Thanks iceman755 :D
by zydeoN
Wed Aug 05, 2009 8:22 pm
Forum: PSP Development
Topic: USB prx problem hook?
Replies: 6
Views: 1933

Well i finally solved my problem. I was making a prx similar to the vsh menu. If you press select the vsh menu comes in the xmb. And if you press a specific key, the psp activates the usb mode. I discovered that if usb is toggled and the vsh menu is in the xmb, the psp will freeze when suspending, b...
by zydeoN
Wed Aug 05, 2009 9:45 am
Forum: PSP Development
Topic: USB prx problem hook?
Replies: 6
Views: 1933

USB prx problem hook?

Hey, im developing a plugin that can toggle usb. Its working well, i can detect the psp on pc, but the problem is when the psp goes in standby. If i dont activate the usb i dont have problems. But if i toggle usb and after a while the psp goes in standby, the psp freezes and then shutdown. My questi...
by zydeoN
Mon Aug 03, 2009 1:26 am
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 10200

It works now xD Tks cory1492.
Take a look at some of the file browser examples and see how that works.
Where can i find them ?
by zydeoN
Sun Aug 02, 2009 3:25 am
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 10200

Havent found however the function to shutdown the psp completely.
scePowerRequestStandby and sceSysconPowerStandby() just suspend the psp. Btw, how could i explore the prx in flash0, including searching for functions and that kind ? do i have to use a decompiler ?
by zydeoN
Sat Aug 01, 2009 7:27 am
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 10200

Well, ive seen what moonlight said about FindProc(). So, we use FindProc() to get the address of the function scePower_0442D852 (which is not in pspsdk) and how the hell do we use that function with only the address? Help please EDIT: Well i accidentally found a source on google and it is working no...
by zydeoN
Thu Jul 30, 2009 11:00 pm
Forum: PSP Development
Topic: Connecting Adhoc to the pc from psp
Replies: 20
Views: 6752

by zydeoN
Thu Jul 30, 2009 5:11 am
Forum: PSP Development
Topic: [PRX] How to print text over the XMB?
Replies: 15
Views: 5038

I installed GIMP 2.6 and saved as raw image (ourImage.raw) But cannot open this format with gimp, shouldnt this be possible? Btw, how can i store the RAW image either on MS or embedded? Do i have to do something like that: int fd = sceIoOpen&#40;"ms0&#58;/font.raw", PSP_O_RDONLY, 0...
by zydeoN
Wed Jul 29, 2009 6:50 am
Forum: PSP Development
Topic: [PRX] How to print text over the XMB?
Replies: 15
Views: 5038

i found vshblitter, but cannot compile it in kernel mode if i used USE_KERNEL_LIBC = 1 USE_KERNEL_LIBS = 1 I tried without those and it compiled but the prx didnt work, so i will try the links you gave me.. EDIT: Tried the first one, but it is the same. I think the problem here is when i am loading ...
by zydeoN
Sun Jul 26, 2009 9:14 am
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 10200

Any function that can reboot the psp? I tried sceSysconResetDevice(1,1), but that doesnt work... Anybody used a different one ?
by zydeoN
Sat Jul 25, 2009 12:31 am
Forum: PSP Development
Topic: [PRX] How to print text over the XMB?
Replies: 15
Views: 5038

Now im trying to blit images on XMB. Does anyone here have the sources of the vshblitter. I searched the net, but all links are corrupted... Ive heard about GU in XMB but, i dont know anything about GU
by zydeoN
Fri Jul 24, 2009 12:55 am
Forum: PSP Development
Topic: [PRX] How to print text over the XMB?
Replies: 15
Views: 5038

Solved again... I had to put 0x18 on createThread in module_start, instead of 0x30.
by zydeoN
Thu Jul 23, 2009 12:27 pm
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 10200

Well i forgot to add to game.txt. It works fine. But what function do you use to shut off psp? Does it completely shut off, or it just suspend ?
by zydeoN
Thu Jul 23, 2009 9:04 am
Forum: PSP Development
Topic: [PRX] How to print text over the XMB?
Replies: 15
Views: 5038

Solved, i was not putting the blit.c right away. Anyway, the path to the two files are psp/sdk/include Now i can´t display anything on xmb, although it is compiling well. Here is the code: #include <pspctrl.h> #include <pspdisplay.h> #include <stdio.h> #include <pspkernel.h> #include <psppower.h> #...
by zydeoN
Thu Jul 23, 2009 8:00 am
Forum: PSP Development
Topic: [PRX] How to print text over the XMB?
Replies: 15
Views: 5038

Solved, i was not putting the blit.c right away. Anyway, the path to the two files are psp/sdk/include
by zydeoN
Thu Jul 23, 2009 5:13 am
Forum: PSP Development
Topic: [PRX] How to print text over the XMB?
Replies: 15
Views: 5038

Where do i have to put the blit.h, blit.c so i can compile ?
by zydeoN
Thu Jul 23, 2009 4:26 am
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 10200

Are you sure you want the PSP to power off with just one button (L shoulder) held?
No it was just an example. Btw, this prx inside games doesn't work. Yes, turning off the psp completely seems impossible, but im happy with scePowerRequestSuspend();
by zydeoN
Wed Jul 22, 2009 10:29 pm
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 10200

Solved !! I had to put this on my Makefile LDFLAGS += -mnno-crt0 -nostartfiles Which means i dont need the SDK initialization, since i defined a module_start and the SDK (src/startup/crt0.c and crt0_prx.c) defines the entry point and call your own main. The prx is working, now i will try shutdown th...