Skip to content

Commit

Permalink
Merge pull request #581 from jonian/lr-fcram
Browse files Browse the repository at this point in the history
Libretro: Expose FCRAM pointer
  • Loading branch information
wheremyfoodat authored Aug 18, 2024
2 parents 27de70d + 24bb295 commit 5babeaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libretro_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@ 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;
}

void* retro_get_memory_data(uint id) {
if (id == RETRO_MEMORY_SYSTEM_RAM) {
return 0;
return emulator->getMemory().getFCRAM();
}

return nullptr;
Expand Down

0 comments on commit 5babeaf

Please sign in to comment.