How to use GU in the XMB?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Aura
Posts: 37
Joined: Tue Jul 24, 2007 4:30 am

How to use GU in the XMB?

Post by Aura »

I'm having problems getting GU to load in the XMB, I'm just playing around at the moment, but I always crash the XMB, everytime...

I've tried using the Logic source code from the toolchain (seeing as it was made by a fully competant programmer), but alas, same problem. The crash occurs in the SCE_VSH_GRAPHICS thread, and when this thread is suspended, the GU can run without crashing, but when resuming again (even if the GU is no longer running) causes a crash.

I've found that when commenting this line

Code: Select all

sceGuDispBuffer(SCR_WIDTH,SCR_HEIGHT,fbp1,BUF_WIDTH);
the crash no longer occurs, but obviously, nothing is drawn onscreen correctly. All of my attempts thus far to try and sort this out have led to very messy code, and no success what so ever.

I'm pritty sure its possible to do it, seeing as the DSX library can draw on the XMB, and using the graphics.c also allows for things to be drawn on screen, but neither has proved very helpful to me for solving this problem. No doubt theres some easy answer that I've completely overlooked, but seeing as my GU knowledge is in the same leauge as a mules, I'm really not sure what I can and can't do.

This has been driving me mental for a while, and any help would be really appreciated.

Thanks.
-Aura
User avatar
Aura
Posts: 37
Joined: Tue Jul 24, 2007 4:30 am

Post by Aura »

Does no-one know what needs to be changed specifically to do this?

-Aura
flatmush
Posts: 28
Joined: Tue Aug 07, 2007 9:15 am
Location: Here
Contact:

Post by flatmush »

rz950
Posts: 10
Joined: Mon Jun 27, 2005 4:10 am

Post by rz950 »

Maybe it could be other things that are wrong with it and not just sceGuDispBuffer but I know this one should work,

sceGuDispBuffer(SCR_WIDTH,SCR_HEIGHT,(void*)0x88000,BUF_WIDTH);
same thing as
sceGuDispBuffer(SCR_WIDTH,SCR_HEIGHT,(void*)(512 * 272 * 4),BUF_WIDTH);

buf_width should be 512

a but more of your code would be useful and helping :)
User avatar
Aura
Posts: 37
Joined: Tue Jul 24, 2007 4:30 am

Post by Aura »

Theres no code really to post that you shouldn't already have, all I'm trying to do is get any of the GU examples to work in the XMB, the link I was sent seemed good at first, but only appears to work during the bootscreen at the start, I've tried working from there but still no luck.

-Aura
User avatar
Aura
Posts: 37
Joined: Tue Jul 24, 2007 4:30 am

Post by Aura »

*Ignore double posted for some reason*
Post Reply