GU on XMB crash

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

Moderators: cheriff, TyRaNiD

Post Reply
zydeoN
Posts: 45
Joined: Sat May 09, 2009 4:01 am

GU on XMB crash

Post by zydeoN »

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 really dont know how much i have to allocate:

Code: Select all

	mem = sceKernelAllocPartitionMemory(2, "dlist", 0, 262144, NULL);
	list = 262144;
In MDL we have this:

Code: Select all

	mem = sceKernelAllocPartitionMemory(2, "dlist", 0, 262144, NULL);
	font = (void *)(((u32)sceKernelGetBlockHeadAddr(mem) + 15) & ~15);
	list = (void *)((u32)font + 0x20000);

Please help
zydeoN
Posts: 45
Joined: Sat May 09, 2009 4:01 am

Post by zydeoN »

Do i have to load the vertex i want do display in user mode ? How do i do that?
Post Reply