all repos — mgba @ 5930e10cf42562fd4937ae7eb40d1de39f06a5c4

mGBA Game Boy Advance Emulator

GB Test: Make sure to init core configs
Vicki Pfau vi@endrift.com
Sat, 05 Aug 2017 23:12:07 -0700
commit

5930e10cf42562fd4937ae7eb40d1de39f06a5c4

parent

ff272a5f1d386034377440b1478e46d3354de67c

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

jump to
M src/gb/test/core.csrc/gb/test/core.c

@@ -29,6 +29,7 @@ M_TEST_DEFINE(reset) {

struct mCore* core = GBCoreCreate(); assert_non_null(core); assert_true(core->init(core)); + mCoreInitConfig(core, NULL); core->reset(core); core->deinit(core); }

@@ -37,6 +38,7 @@ M_TEST_DEFINE(loadNullROM) {

struct mCore* core = GBCoreCreate(); assert_non_null(core); assert_true(core->init(core)); + mCoreInitConfig(core, NULL); assert_false(core->loadROM(core, NULL)); core->reset(core); core->deinit(core);
M src/gb/test/mbc.csrc/gb/test/mbc.c

@@ -16,6 +16,7 @@ struct VFile* vf = VFileMemChunk(NULL, 2048);

GBSynthesizeROM(vf); struct mCore* core = GBCoreCreate(); core->init(core); + mCoreInitConfig(core, NULL); core->loadROM(core, vf); *state = core; return 0;
M src/gb/test/memory.csrc/gb/test/memory.c

@@ -16,6 +16,7 @@ struct VFile* vf = VFileMemChunk(NULL, GB_SIZE_CART_BANK0 * 4);

GBSynthesizeROM(vf); struct mCore* core = GBCoreCreate(); core->init(core); + mCoreInitConfig(core, NULL); core->loadROM(core, vf); *state = core; return 0;
M src/gb/test/rtc.csrc/gb/test/rtc.c

@@ -48,6 +48,7 @@ *state = NULL;

return -1; } test->core->init(test->core); + mCoreInitConfig(test->core, NULL); struct VFile* vf = VFileMemChunk(NULL, 2048); GBSynthesizeROM(vf); test->core->loadROM(test->core, vf);