diff options
author | Sven | 2018-08-11 14:35:49 -0400 |
---|---|---|
committer | Sven | 2018-08-11 14:35:49 -0400 |
commit | 89e311b489170fdce5e2cf5b186c0a3f6b054336 (patch) | |
tree | 9bdceea0d153924be147105a8bb577243d6295b6 | |
parent | 2500283a19175880af28f38e94c3d660b39703b4 (diff) | |
download | picogpsp-89e311b489170fdce5e2cf5b186c0a3f6b054336.tar.gz picogpsp-89e311b489170fdce5e2cf5b186c0a3f6b054336.tar.bz2 picogpsp-89e311b489170fdce5e2cf5b186c0a3f6b054336.zip |
add memory hooks for cheat/rumble
-rwxr-xr-x | gpsp_libretro.so | bin | 0 -> 1167074 bytes | |||
-rw-r--r-- | libretro.c | 7 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gpsp_libretro.so b/gpsp_libretro.so Binary files differnew file mode 100755 index 0000000..56dd5f1 --- /dev/null +++ b/gpsp_libretro.so @@ -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) |