mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Wii/GC: free memory instead of used memory
This commit is contained in:
parent
c78dcbd382
commit
2bd71b55bc
@ -527,10 +527,9 @@ static uint64_t frontend_gx_get_mem_total(void)
|
||||
|
||||
static uint64_t frontend_gx_get_mem_free(void)
|
||||
{
|
||||
uint64_t total = SYSMEM1_SIZE - SYS_GetArena1Size();
|
||||
uint64_t total = SYSMEM1_SIZE - (SYSMEM1_SIZE - SYS_GetArena1Size());
|
||||
#if defined(HW_RVL) && !defined(IS_SALAMANDER)
|
||||
/* TODO/FIXME - this needs to change */
|
||||
total += gx_mem2_used();
|
||||
total += (gx_mem2_total() - gx_mem2_used());
|
||||
#endif
|
||||
return total;
|
||||
}
|
||||
|
@ -11365,15 +11365,11 @@ static void retroarch_overlay_init(void)
|
||||
{
|
||||
settings_t *settings = configuration_settings;
|
||||
|
||||
#if 0
|
||||
#if defined(GEKKO)
|
||||
/* TODO/FIXME - Wiimpathy - behavior here has changed - can you
|
||||
* rewrite this? */
|
||||
/* Avoid a crash at startup or even when toggling overlay in rgui */
|
||||
uint64_t memory_free = frontend_driver_get_free_memory();
|
||||
if (memory_free > (72 * 1024 * 1024))
|
||||
if (memory_free < (3 * 1024 * 1024))
|
||||
return;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
retroarch_overlay_deinit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user