From 8b17db564aedac910b0d5b5f9d6e83403f1c44ff Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 23 Feb 2016 23:02:07 -0800 Subject: [PATCH] Perf: Support alternate cores --- src/platform/test/perf-main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/platform/test/perf-main.c b/src/platform/test/perf-main.c index 6667776b9..58ab5a60e 100644 --- a/src/platform/test/perf-main.c +++ b/src/platform/test/perf-main.c @@ -72,7 +72,11 @@ int main(int argc, char** argv) { void* outputBuffer = malloc(256 * 256 * 4); - struct mCore* core = GBACoreCreate(); + struct mCore* core = mCoreFind(args.fname); + if (!core) { + freeArguments(&args); + return 1; + } struct mCoreThread context = { .core = core };