Unverified Commit 778773f0 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #39 from RetroSven/master

add memory hooks for cheat/rumble
parents bf4c03b5 1a444795
......@@ -18,7 +18,9 @@ static unsigned image_buffer_height;
static uint16_t XPal[80];
static uint16_t BPal[256];
static uint16_t XPal0;
extern byte *RAMData;
extern int RAMPages ;
#define SND_RATE 48000
......@@ -734,12 +736,17 @@ unsigned retro_get_region(void)
}
void *retro_get_memory_data(unsigned id)
{
{
if ( id == RETRO_MEMORY_SYSTEM_RAM )
return RAMData;
return NULL;
}
size_t retro_get_memory_size(unsigned id)
{
{
if ( id == RETRO_MEMORY_SYSTEM_RAM )
return RAMPages*0x4000;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment