Merge pull request #50 from RetroSven/master
add memory hooks for cheat/rumble
This commit is contained in:
commit
d99f3ac9f1
Binary file not shown.
|
@ -532,6 +532,8 @@ unsigned retro_get_region(void)
|
||||||
|
|
||||||
void* retro_get_memory_data(unsigned id)
|
void* retro_get_memory_data(unsigned id)
|
||||||
{
|
{
|
||||||
|
if ( id == RETRO_MEMORY_SYSTEM_RAM )
|
||||||
|
return ewram ;
|
||||||
// switch (id)
|
// switch (id)
|
||||||
// {
|
// {
|
||||||
// case RETRO_MEMORY_SAVE_RAM:
|
// case RETRO_MEMORY_SAVE_RAM:
|
||||||
|
@ -543,6 +545,9 @@ void* retro_get_memory_data(unsigned id)
|
||||||
|
|
||||||
size_t retro_get_memory_size(unsigned id)
|
size_t retro_get_memory_size(unsigned id)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if ( id == RETRO_MEMORY_SYSTEM_RAM )
|
||||||
|
return 1024 * 256 * 2 ;
|
||||||
// switch (id)
|
// switch (id)
|
||||||
// {
|
// {
|
||||||
// case RETRO_MEMORY_SAVE_RAM:
|
// case RETRO_MEMORY_SAVE_RAM:
|
||||||
|
|
Loading…
Reference in New Issue