mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 14:15:41 +12:00
Merge pull request #581 from jonian/lr-fcram
Libretro: Expose FCRAM pointer
This commit is contained in:
commit
5babeaf692
1 changed files with 2 additions and 2 deletions
|
@ -368,7 +368,7 @@ uint retro_api_version() { return RETRO_API_VERSION; }
|
|||
|
||||
usize retro_get_memory_size(uint id) {
|
||||
if (id == RETRO_MEMORY_SYSTEM_RAM) {
|
||||
return 0;
|
||||
return Memory::FCRAM_SIZE;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -376,7 +376,7 @@ usize retro_get_memory_size(uint id) {
|
|||
|
||||
void* retro_get_memory_data(uint id) {
|
||||
if (id == RETRO_MEMORY_SYSTEM_RAM) {
|
||||
return 0;
|
||||
return emulator->getMemory().getFCRAM();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Reference in a new issue