Fix GBA SRAM

This commit is contained in:
Jesse Talavera 2024-04-08 16:01:56 -04:00
parent a506a6af36
commit b802dce7cb
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ and this project roughly adheres to [Semantic Versioning](https://semver.org/spe
- Fixed a bug where native BIOS images would be used
when the core was supposed to fall back to built-in system files.
- Fixed a bug where GBA SRAM wouldn't be loaded.
## [1.1.1] - 2024-02-29

View File

@ -667,7 +667,7 @@ void MelonDsDs::CoreState::InitContent(unsigned type, std::span<const retro_game
// First initialize the content info...
switch (type) {
case MELONDSDS_GAME_TYPE_SLOT_1_2_BOOT:
if (game.size() > 2 && game[2].path != nullptr && game[2].size > 0) {
if (game.size() > 2 && game[2].path != nullptr) {
// If we got a GBA SRAM file...
_gbaSaveInfo = game[2];
}