neverWhen has that stopped anyone?
Probably not unless you use u32 MEMGetBaseHeapHandle(int arena); void* MEMAllocFromExpHeapEx(u32 *handle, u32 size, int alignment); Be sure to check if the alloc value returned is NULL.Does anyone know the maximum allocatable size we can get from heap ?
I have to allocate a buffer to copy an unsigned char array of about 990 000 rows . When I use MEMAllocFromHeapEx function it crashes, so i assume it's not possible to allocate a buffer that big...
If it's not possible, how can i allocate directly from the stack (and what is the stack adress range for the elf loader) ?.
I have another question, when i allocate memory for a struct, does it allocate memory for struct pointers placed inside the struct (as in linked list for ex) ?
Not to be off topic, but when do you or a supervisor plan to unlock iosu thread?That's illegal
Not to be off topic, but when do you or a supervisor plan to unlock iosu thread?
Do you know if Hykem confirmed iosu to be released before march or any release date?I can't do it A mod will probably have to or I'll start a new thread when IOSU is released, I guess?
Do you know if Hykem confirmed iosu to be released before march or any release date?
Nah, it was just a general time-frame. Nothing concrete.
Not currently. Until IOSU is released, no emulators.So... anyone developing a NES emulator?
Yes, or:Should I turn off my wiiu internet to be on the safe side
I mean, I could learn how, but I'm better off documenting stuff for others like a certain someone else is doing ¯\_(ツ)_/¯So... anyone developing a NES emulator?
Could you please? That would be a huge announcement in the Wii u homebrew world.I mean, I could learn how, but I'm better off documenting stuff for others like a certain someone else is doing ¯\_(ツ)_/¯
Could you please? That would be a huge announcement in the Wii u homebrew world.
Thanks but it doesn't work...Probably not unless you use u32 MEMGetBaseHeapHandle(int arena); void* MEMAllocFromExpHeapEx(u32 *handle, u32 size, int alignment); Be sure to check if the alloc value returned is NULL.
EDIT: whoops, changed something, need to pass in the arena, want to do MEMGetBaseHeapHandle(1);
uint32_t coreinit_handle;
OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
uint32_t (*MEMGetBaseHeapHandle)(int mem_arena);
OSDynLoad_FindExport(coreinit_handle, 0, "MEMGetBaseHeapHandle", &MEMGetBaseHeapHandle);
uint32_t *memalign, *freemem;
OSDynLoad_FindExport(coreinit_handle, 0, "MEMAllocFromExpHeapEx", &memalign);
OSDynLoad_FindExport(coreinit_handle, 0, "MEMFreeToDefaultHeap", &freemem);
void* (*MEMAllocFromExpHeapEx)(uint32_t heap, uint32_t size, int align) = (void*(*)(uint32_t,uint32_t,int))*memalign;
void (*MEMFreeToDefaultHeap)(void *ptr) = (void (*)(void*))*freemem;
uint32_t heap = MEMGetBaseHeapHandle(1);
void *buffer = MEMAllocFromExpHeapEx(heap, 0x200, 0x20);
if(buffer == NULL) OSFatal("Memory allocation failed");
OSFatal("Buffer allocated");
MEMFreeToDefaultHeap(buffer);
I think there would be more chance getting Retroarch ported to the WiiU. But I don't think Twinaphex has the hardware. Retroarch with the Lakka GUI would be awesomeCould you please? That would be a huge announcement in the Wii u homebrew world.
Aww......learn from scratch? That could take months/years until it's playable lol xD
Thanks but it doesn't work...
Must be something wrong with my code :
It crashes before OSFatal... no clueCode:uint32_t coreinit_handle; OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle); uint32_t (*MEMGetBaseHeapHandle)(int mem_arena); OSDynLoad_FindExport(coreinit_handle, 0, "MEMGetBaseHeapHandle", &MEMGetBaseHeapHandle); uint32_t *memalign, *freemem; OSDynLoad_FindExport(coreinit_handle, 0, "MEMAllocFromExpHeapEx", &memalign); OSDynLoad_FindExport(coreinit_handle, 0, "MEMFreeToDefaultHeap", &freemem); void* (*MEMAllocFromExpHeapEx)(uint32_t heap, uint32_t size, int align) = (void*(*)(uint32_t,uint32_t,int))*memalign; void (*MEMFreeToDefaultHeap)(void *ptr) = (void (*)(void*))*freemem; uint32_t heap = MEMGetBaseHeapHandle(1); void *buffer = MEMAllocFromExpHeapEx(heap, 0x200, 0x20); if(buffer == NULL) OSFatal("Memory allocation failed"); OSFatal("Buffer allocated"); MEMFreeToDefaultHeap(buffer);
Keep in mind that it can never get to MEMFreeToDefaultHeap.Thanks but it doesn't work...
Must be something wrong with my code :
It crashes before OSFatal... no clueCode:uint32_t coreinit_handle; OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle); uint32_t (*MEMGetBaseHeapHandle)(int mem_arena); OSDynLoad_FindExport(coreinit_handle, 0, "MEMGetBaseHeapHandle", &MEMGetBaseHeapHandle); uint32_t *memalign, *freemem; OSDynLoad_FindExport(coreinit_handle, 0, "MEMAllocFromExpHeapEx", &memalign); OSDynLoad_FindExport(coreinit_handle, 0, "MEMFreeToDefaultHeap", &freemem); void* (*MEMAllocFromExpHeapEx)(uint32_t heap, uint32_t size, int align) = (void*(*)(uint32_t,uint32_t,int))*memalign; void (*MEMFreeToDefaultHeap)(void *ptr) = (void (*)(void*))*freemem; uint32_t heap = MEMGetBaseHeapHandle(1); void *buffer = MEMAllocFromExpHeapEx(heap, 0x200, 0x20); if(buffer == NULL) OSFatal("Memory allocation failed"); OSFatal("Buffer allocated"); MEMFreeToDefaultHeap(buffer);