summaryrefslogtreecommitdiff
path: root/libretro.c
diff options
context:
space:
mode:
authornegativeExponent2020-09-05 20:54:47 +0800
committernegativeExponent2020-09-05 20:54:57 +0800
commita3725fd81fbd3c779753aea351efeb0193a56ac9 (patch)
tree8c303987b6df57aa96496527da003c4c4c684812 /libretro.c
parentd8225bb313a19bc3b65e257401d3cf5f3eaa32e3 (diff)
downloadpicogpsp-a3725fd81fbd3c779753aea351efeb0193a56ac9.tar.gz
picogpsp-a3725fd81fbd3c779753aea351efeb0193a56ac9.tar.bz2
picogpsp-a3725fd81fbd3c779753aea351efeb0193a56ac9.zip
Remove ewram from libretro api
- Removing RETRO_SYSTEM_MEMORY from retro_get_memory_data/size since its incompatible for 2 reasons: 1. gba uses at least 2 blocks of memory, which is not supported 2. the way gpsp's memory block are not contiguous (see memory descriptors)
Diffstat (limited to 'libretro.c')
-rw-r--r--libretro.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libretro.c b/libretro.c
index b37a94e..d1f2562 100644
--- a/libretro.c
+++ b/libretro.c
@@ -669,8 +669,6 @@ void* retro_get_memory_data(unsigned id)
{
switch (id)
{
- case RETRO_MEMORY_SYSTEM_RAM:
- return ewram;
case RETRO_MEMORY_SAVE_RAM:
if (use_libretro_save_method)
return gamepak_backup;
@@ -686,9 +684,6 @@ size_t retro_get_memory_size(unsigned id)
{
switch (id)
{
- case RETRO_MEMORY_SYSTEM_RAM:
- return 1024 * 256 * 2;
-
case RETRO_MEMORY_SAVE_RAM:
if (use_libretro_save_method)
{