mirror of https://github.com/mgba-emu/mgba.git
Fix perf main after adding BIOS loading
This commit is contained in:
parent
2ee3d17d33
commit
22ef0977dc
|
@ -26,23 +26,22 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
signal(SIGINT, _GBAPerfShutdown);
|
signal(SIGINT, _GBAPerfShutdown);
|
||||||
|
|
||||||
struct GBAThread context;
|
|
||||||
struct GBAVideoSoftwareRenderer renderer;
|
struct GBAVideoSoftwareRenderer renderer;
|
||||||
GBAVideoSoftwareRendererCreate(&renderer);
|
GBAVideoSoftwareRendererCreate(&renderer);
|
||||||
|
|
||||||
renderer.outputBuffer = malloc(256 * 256 * 4);
|
renderer.outputBuffer = malloc(256 * 256 * 4);
|
||||||
renderer.outputBufferStride = 256;
|
renderer.outputBufferStride = 256;
|
||||||
|
|
||||||
context.fd = fd;
|
struct GBAThread context = {
|
||||||
context.fname = fname;
|
.fd = fd,
|
||||||
context.useDebugger = 0;
|
.fname = fname,
|
||||||
context.renderer = &renderer.d;
|
.biosFd = -1,
|
||||||
context.frameskip = 0;
|
.useDebugger = 0,
|
||||||
context.sync.videoFrameWait = 0;
|
.renderer = &renderer.d,
|
||||||
context.sync.audioWait = 0;
|
.frameskip = 0,
|
||||||
context.startCallback = 0;
|
.sync.videoFrameWait = 0,
|
||||||
context.cleanCallback = 0;
|
.sync.audioWait = 0
|
||||||
context.frameCallback = 0;
|
};
|
||||||
_thread = &context;
|
_thread = &context;
|
||||||
GBAThreadStart(&context);
|
GBAThreadStart(&context);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue