all repos — mgba @ 7ecdf94b6beb5c5a78d59b9822067bb253368595

mGBA Game Boy Advance Emulator

Test: Load dummy save in CInema
Vicki Pfau vi@endrift.com
Wed, 22 Jul 2020 22:20:01 -0700
commit

7ecdf94b6beb5c5a78d59b9822067bb253368595

parent

f5ed6a6c814f506b61b4d0ce4827eb555f1059fc

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/test/cinema-main.csrc/platform/test/cinema-main.c

@@ -605,7 +605,11 @@ CInemaConfigGetUInt(configTree, test->name, "fail", &fail);

CInemaConfigGetUInt(configTree, test->name, "video", &video); CInemaConfigLoad(configTree, test->name, core); + struct VFile* save = VFileMemChunk(NULL, 0); core->loadROM(core, rom); + if (!core->loadSave(core, save)) { + save->close(save); + } core->rtc.override = RTC_FAKE_EPOCH; core->rtc.value = 1200000000; core->reset(core);