Test: Load dummy save in CInema
Vicki Pfau vi@endrift.com
Wed, 22 Jul 2020 22:20:01 -0700
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/platform/test/cinema-main.c
→
src/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);