Re: Re: Expanded Windows Compile Guide

Home › Forums › Development › Expanded Windows Compile Guide › Re: Re: Expanded Windows Compile Guide

#25993
cadbusca
Member

Well it turns out that the development SVN’s are not only dependent on the prereleased libogc but now are also dependent on custom mods to that code.

The following source code needs to be added to C:libogclibogclwp_heap.c
then recompile libogc and copy C:libogclib to C:devkitProlibogclib

My compile of SVN 528 now works.

//You need to add the next function in lwp_heap.c (libogc) to get debug info

u32 __lwp_heap_block_size(heap_cntrl *theheap,void *ptr)
{
heap_block *block;
u32 dsize,level;

_CPU_ISR_Disable(level);

block = __lwp_heap_usrblockat(ptr);
if(!__lwp_heap_blockin(theheap,block) || __lwp_heap_blockfree(block)) {
_CPU_ISR_Restore(level);
return 0;
}

dsize = __lwp_heap_blocksize(block);
_CPU_ISR_Restore(level);
return dsize;
}