libretro / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
43 stars 64 forks source link

Add 'LOW_MEMORY' build flag to force content loading from file on RAM-limited platforms #167

Closed jdgleaver closed 3 years ago

jdgleaver commented 3 years ago

This PR adds a LOW_MEMORY build flag which forces the core to set need_fullpath = true - meaning that ROM data will be read directly from file rather than being passed as a frontend-provided data buffer. This is required for very low memory platforms, where the use of an 'external' memory buffer (which must be duplicated in the core) can exceed the total system RAM.

At present, this flag is only enabled for the RS-90 build. This allows 4MB ROMs to be loaded successfully (without the flag, the core will simply crash when attempting to launch such content)