(CTR/3DS) Properly report free RAM

This commit is contained in:
twinaphex 2019-09-22 04:42:20 +02:00
parent c2b26a3cd9
commit 3a39a51f11

View File

@ -506,8 +506,7 @@ static uint64_t frontend_ctr_get_mem_total(void)
static uint64_t frontend_ctr_get_mem_free(void)
{
/* TODO/FIXME - does this return 'free memory'? */
return osGetMemRegionUsed(MEMREGION_ALL);
return osGetMemRegionFree(MEMREGION_ALL);
}
static enum frontend_powerstate frontend_ctr_get_powerstate(