PSP OSK in 3.03OE

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

Moderators: cheriff, TyRaNiD

Post Reply
youresam
Posts: 87
Joined: Sun Nov 06, 2005 1:43 am

PSP OSK in 3.03OE

Post by youresam »

I've read up on getting the PSPs builtin OSK to work, and on 3.03OE, as far as I know, the only way is to build it as a PRX and run it in 3.03 mode.
I dont really mind this, but what I'm facing is what I believe a memory issue. memalign fails when trying to create a 128x128 image from graphics.c. However, it succeeds creating a 32x32 image.

So I am wondering if anyone knows how to get the OSK to work on 3.03OE in 1.50 mode?

Thanks.
Last edited by youresam on Sun Mar 25, 2007 10:39 am, edited 1 time in total.
youresam
Posts: 87
Joined: Sun Nov 06, 2005 1:43 am

Re: PSP OSK in 3.03OE

Post by youresam »

edit...double post?
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

PRX default to only having 64KB of heap, 128x128x4 is 64KB so you stand no chance of allocating that.

To get more put somewhere at the top of your main source file

Code: Select all

PSP_HEAP_SIZE_KB(1024)
That will give you a 1MB heap, obviously if you need more then play with the value.
youresam
Posts: 87
Joined: Sun Nov 06, 2005 1:43 am

Post by youresam »

Ah, thank you TyRaNiD
Post Reply