all repos — mgba @ 22ef0977dc138d57300aa9ea2fbd8ec94c10caa3

mGBA Game Boy Advance Emulator

Fix perf main after adding BIOS loading
Jeffrey Pfau jeffrey@endrift.com
Fri, 31 Jan 2014 00:10:56 -0800
commit

22ef0977dc138d57300aa9ea2fbd8ec94c10caa3

parent

2ee3d17d331091f8209f774954fd1c4f6aa1942f

1 files changed, 10 insertions(+), 11 deletions(-)

jump to
M src/platform/perf-main.csrc/platform/perf-main.c

@@ -26,23 +26,22 @@ }

signal(SIGINT, _GBAPerfShutdown); - struct GBAThread context; struct GBAVideoSoftwareRenderer renderer; GBAVideoSoftwareRendererCreate(&renderer); renderer.outputBuffer = malloc(256 * 256 * 4); renderer.outputBufferStride = 256; - context.fd = fd; - context.fname = fname; - context.useDebugger = 0; - context.renderer = &renderer.d; - context.frameskip = 0; - context.sync.videoFrameWait = 0; - context.sync.audioWait = 0; - context.startCallback = 0; - context.cleanCallback = 0; - context.frameCallback = 0; + struct GBAThread context = { + .fd = fd, + .fname = fname, + .biosFd = -1, + .useDebugger = 0, + .renderer = &renderer.d, + .frameskip = 0, + .sync.videoFrameWait = 0, + .sync.audioWait = 0 + }; _thread = &context; GBAThreadStart(&context);