mirror of
https://github.com/FunKey-Project/gpsp_libretro.git
synced 2025-12-13 18:58:50 +01:00
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)
This commit is contained in:
parent
d8225bb313
commit
a3725fd81f
@ -669,8 +669,6 @@ void* retro_get_memory_data(unsigned id)
|
|||||||
{
|
{
|
||||||
switch (id)
|
switch (id)
|
||||||
{
|
{
|
||||||
case RETRO_MEMORY_SYSTEM_RAM:
|
|
||||||
return ewram;
|
|
||||||
case RETRO_MEMORY_SAVE_RAM:
|
case RETRO_MEMORY_SAVE_RAM:
|
||||||
if (use_libretro_save_method)
|
if (use_libretro_save_method)
|
||||||
return gamepak_backup;
|
return gamepak_backup;
|
||||||
@ -686,9 +684,6 @@ size_t retro_get_memory_size(unsigned id)
|
|||||||
{
|
{
|
||||||
switch (id)
|
switch (id)
|
||||||
{
|
{
|
||||||
case RETRO_MEMORY_SYSTEM_RAM:
|
|
||||||
return 1024 * 256 * 2;
|
|
||||||
|
|
||||||
case RETRO_MEMORY_SAVE_RAM:
|
case RETRO_MEMORY_SAVE_RAM:
|
||||||
if (use_libretro_save_method)
|
if (use_libretro_save_method)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user