zydeoN
Joined: 09 May 2009 Posts: 45
|
Posted: Thu Sep 10, 2009 7:30 pm Post subject: 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 really dont know how much i have to allocate:
| Code: | mem = sceKernelAllocPartitionMemory(2, "dlist", 0, 262144, NULL);
list = 262144;
|
In MDL we have this:
| Code: | mem = sceKernelAllocPartitionMemory(2, "dlist", 0, 262144, NULL);
font = (void *)(((u32)sceKernelGetBlockHeadAddr(mem) + 15) & ~15);
list = (void *)((u32)font + 0x20000); |
Please help |
|