mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Buildfix - apparently Switch memory reporting cannot be implemented
correctly
This commit is contained in:
parent
b01149f068
commit
473400902c
@ -816,17 +816,6 @@ static int frontend_switch_parse_drive_list(void *data, bool load_content)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static uint64_t frontend_switch_get_mem_total(void)
|
||||
{
|
||||
uint64_t memoryTotal = 0;
|
||||
svcGetInfo(&memoryTotal, 6, 0xffff8001, 0);
|
||||
/* TODO/FIXME - is now 'free memory', perhaps logic
|
||||
* here needs to change */
|
||||
memoryTotal += frontend_switch_get_mem_free();
|
||||
|
||||
return memoryTotal;
|
||||
}
|
||||
|
||||
static uint64_t frontend_switch_get_mem_free(void)
|
||||
{
|
||||
/* TODO/FIXME - should become 'free memory' */
|
||||
@ -836,6 +825,14 @@ static uint64_t frontend_switch_get_mem_free(void)
|
||||
return memoryUsed;
|
||||
}
|
||||
|
||||
static uint64_t frontend_switch_get_mem_total(void)
|
||||
{
|
||||
uint64_t memoryTotal = 0;
|
||||
svcGetInfo(&memoryTotal, 6, 0xffff8001, 0);
|
||||
return memoryTotal;
|
||||
}
|
||||
|
||||
|
||||
static enum frontend_powerstate
|
||||
frontend_switch_get_powerstate(int *seconds, int *percent)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user