libretro: add achievements

http://retroachievements.org/gameList.php?c=25
This commit is contained in:
trinemark 2019-04-27 20:11:17 -05:00 committed by Stephen Anthony
parent a795593000
commit 2284dc7f55
3 changed files with 19 additions and 6 deletions

View File

@ -123,6 +123,13 @@ class M6532 : public Device
*/
void updateEmulation();
/**
Get a pointer to the RAM contents.
@return Pointer to RAM array.
*/
uInt8* getRAM() { return myRAM; }
private:
void setTimerRegister(uInt8 data, uInt8 interval);

View File

@ -62,8 +62,8 @@ class StellaLIBRETRO
uInt32 getROMSize() { return rom_size; }
uInt32 getROMMax() { return 512 * 1024; }
//uInt8* getRAM() { return myOSystem->console().system().m6532().getRAM(); }
//uInt32 getRAMSize() { return 128; }
uInt8* getRAM() { return myOSystem->console().system().m6532().getRAM(); }
uInt32 getRAMSize() { return 128; }
size_t getStateSize();

View File

@ -613,8 +613,11 @@ void *retro_get_memory_data(unsigned id)
{
switch (id)
{
//case RETRO_MEMORY_SYSTEM_RAM: return stella.getRAM();
default: return NULL;
case RETRO_MEMORY_SYSTEM_RAM:
return stella.getRAM();
default:
return NULL;
}
}
@ -623,8 +626,11 @@ size_t retro_get_memory_size(unsigned id)
{
switch (id)
{
//case RETRO_MEMORY_SYSTEM_RAM: return stella.getRAMSize();
default: return 0;
case RETRO_MEMORY_SYSTEM_RAM:
return stella.getRAMSize();
default:
return 0;
}
}