Libretro: Fix undeclared constant

The `SIZE_CART_FLASH1M` constant was renamed to `GBA_SIZE_FLASH1M` in
8545271e9e

These leftovers make the Libretro build fail, when running:
```
cmake -DBUILD_LIBRETRO=ON .. && make
```
This commit is contained in:
Michael Manganiello 2023-02-24 00:40:25 -03:00 committed by Vicki Pfau
parent 47941aa0b0
commit 682471fa1e
1 changed files with 6 additions and 6 deletions

View File

@ -346,7 +346,7 @@ static void _doDeferredSetup(void) {
// On the off-hand chance that a core actually expects its buffers to be populated when
// you actually first get them, you're out of luck without workarounds. Yup, seriously.
// Here's that workaround, but really the API needs to be thrown out and rewritten.
struct VFile* save = VFileFromMemory(savedata, SIZE_CART_FLASH1M);
struct VFile* save = VFileFromMemory(savedata, GBA_SIZE_FLASH1M);
if (!core->loadSave(core, save)) {
save->close(save);
}
@ -930,8 +930,8 @@ bool retro_load_game(const struct retro_game_info* game) {
core->setPeripheral(core, mPERIPH_RUMBLE, &rumble);
core->setPeripheral(core, mPERIPH_ROTATION, &rotation);
savedata = anonymousMemoryMap(SIZE_CART_FLASH1M);
memset(savedata, 0xFF, SIZE_CART_FLASH1M);
savedata = anonymousMemoryMap(GBA_SIZE_FLASH1M);
memset(savedata, 0xFF, GBA_SIZE_FLASH1M);
_reloadSettings();
core->loadROM(core, rom);
@ -1008,7 +1008,7 @@ void retro_unload_game(void) {
core->deinit(core);
mappedMemoryFree(data, dataSize);
data = 0;
mappedMemoryFree(savedata, SIZE_CART_FLASH1M);
mappedMemoryFree(savedata, GBA_SIZE_FLASH1M);
savedata = 0;
}
@ -1163,7 +1163,7 @@ size_t retro_get_memory_size(unsigned id) {
case mPLATFORM_GBA:
switch (((struct GBA*) core->board)->memory.savedata.type) {
case SAVEDATA_AUTODETECT:
return SIZE_CART_FLASH1M;
return GBA_SIZE_FLASH1M;
default:
return GBASavedataSize(&((struct GBA*) core->board)->memory.savedata);
}