Merge pull request #50 from RetroSven/master

add memory hooks for cheat/rumble
This commit is contained in:
Twinaphex 2018-08-12 10:14:21 +02:00 committed by GitHub
commit d99f3ac9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

BIN
gpsp_libretro.so Executable file

Binary file not shown.

View File

@ -532,6 +532,8 @@ unsigned retro_get_region(void)
void* retro_get_memory_data(unsigned id)
{
if ( id == RETRO_MEMORY_SYSTEM_RAM )
return ewram ;
// switch (id)
// {
// case RETRO_MEMORY_SAVE_RAM:
@ -543,7 +545,10 @@ void* retro_get_memory_data(unsigned id)
size_t retro_get_memory_size(unsigned id)
{
// switch (id)
if ( id == RETRO_MEMORY_SYSTEM_RAM )
return 1024 * 256 * 2 ;
// switch (id)
// {
// case RETRO_MEMORY_SAVE_RAM:
// switch(backup_type)