libctru - How to know when app runs out of memory?
Posted: Sat Nov 25, 2023 3:35 pm
Given this snippet:
I noticed that freeMemory always returns zero.
Should I only use `linearSpaceFree();` instead?
Code: Select all
u32 totalMemory, freeMemory;
freeMemory = osGetMemRegionFree(MEMREGION_APPLICATION);
totalMemory = osGetMemRegionSize(MEMREGION_APPLICATION);
Should I only use `linearSpaceFree();` instead?