mirror of https://github.com/stella-emu/stella.git
libretro: add achievements
http://retroachievements.org/gameList.php?c=25
This commit is contained in:
parent
a795593000
commit
2284dc7f55
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue