mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Add free_memory function
This commit is contained in:
parent
9a25826ae9
commit
c3056a0d06
@ -316,4 +316,12 @@ uint32_t frontend_driver_get_total_memory(void)
|
||||
return 0;
|
||||
return frontend->get_total_mem();
|
||||
}
|
||||
|
||||
uint32_t frontend_driver_get_free_memory(void)
|
||||
{
|
||||
frontend_ctx_driver_t *frontend = frontend_get_ptr();
|
||||
if (!frontend || !frontend->get_free_mem)
|
||||
return 0;
|
||||
return frontend->get_free_mem();
|
||||
}
|
||||
#endif
|
||||
|
@ -157,6 +157,8 @@ bool frontend_driver_get_salamander_basename(char *s, size_t len);
|
||||
|
||||
uint32_t frontend_driver_get_total_memory(void);
|
||||
|
||||
uint32_t frontend_driver_get_free_memory(void);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user