mirror of
https://github.com/libretro/beetle-lynx-libretro.git
synced 2024-11-23 08:10:55 +00:00
Merge pull request #14 from leiradel/master
Fixed retro_get_memory_data/size
This commit is contained in:
commit
0acfeae22b
@ -925,13 +925,17 @@ bool retro_unserialize(const void *data, size_t size)
|
||||
return MDFNSS_LoadSM(&st, 0, 0);
|
||||
}
|
||||
|
||||
void *retro_get_memory_data(unsigned)
|
||||
void *retro_get_memory_data(unsigned type)
|
||||
{
|
||||
if (lynxie && type == RETRO_MEMORY_SYSTEM_RAM)
|
||||
return lynxie->GetRamPointer();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
size_t retro_get_memory_size(unsigned)
|
||||
size_t retro_get_memory_size(unsigned type)
|
||||
{
|
||||
if (type == RETRO_MEMORY_SYSTEM_RAM)
|
||||
return 1024 * 64;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user