Merge pull request #581 from jonian/lr-fcram

Libretro: Expose FCRAM pointer
This commit is contained in:
wheremyfoodat 2024-08-18 20:03:31 +00:00 committed by GitHub
commit 5babeaf692
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;