Fix perf main after adding BIOS loading
Jeffrey Pfau jeffrey@endrift.com
Fri, 31 Jan 2014 00:10:56 -0800
1 files changed,
10 insertions(+),
11 deletions(-)
jump to
M
src/platform/perf-main.c
→
src/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);