forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GU on XMB crash

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
zydeoN



Joined: 09 May 2009
Posts: 45

PostPosted: Thu Sep 10, 2009 7:30 pm    Post subject: GU on XMB crash Reply with quote

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
Back to top
View user's profile Send private message
zydeoN



Joined: 09 May 2009
Posts: 45

PostPosted: Fri Sep 11, 2009 2:52 am    Post subject: Reply with quote

Do i have to load the vertex i want do display in user mode ? How do i do that?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group