From da560ecefc00abe1f2d217fc975d77ff132cf81e Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 16 Aug 2013 07:30:53 -0500 Subject: [PATCH] On CoreParemeter member object creation make sure to set bEnableDebugging, bAutomaticStart, and bBootToPause to default values so they aren't unitialized. This caused a issue in particular on the Android builds where bBootToPause would cause the games to boot in to a paused state, effectively causing the application to need to be forced closed and reran multiple times in order to test anything. --- Source/Core/Core/Src/CoreParameter.cpp | 3 +++ Source/Core/Core/Src/CoreParameter.h | 1 + 2 files changed, 4 insertions(+) diff --git a/Source/Core/Core/Src/CoreParameter.cpp b/Source/Core/Core/Src/CoreParameter.cpp index 78029ced2f..bfa8f5d896 100644 --- a/Source/Core/Core/Src/CoreParameter.cpp +++ b/Source/Core/Core/Src/CoreParameter.cpp @@ -20,6 +20,7 @@ SCoreStartupParameter::SCoreStartupParameter() : hInstance(0), + bEnableDebugging(false), bAutomaticStart(false), bBootToPause(false), bJITNoBlockCache(false), bJITBlockLinking(true), bJITOff(false), bJITLoadStoreOff(false), bJITLoadStorelXzOff(false), @@ -54,6 +55,8 @@ SCoreStartupParameter::SCoreStartupParameter() void SCoreStartupParameter::LoadDefaults() { bEnableDebugging = false; + bAutomaticStart = false; + bBootToPause = false; iCPUCore = 1; bCPUThread = false; bSkipIdle = false; diff --git a/Source/Core/Core/Src/CoreParameter.h b/Source/Core/Core/Src/CoreParameter.h index 13b3ccb6f4..23d1b96481 100644 --- a/Source/Core/Core/Src/CoreParameter.h +++ b/Source/Core/Core/Src/CoreParameter.h @@ -94,6 +94,7 @@ struct SCoreStartupParameter // 0 = Interpreter // 1 = Jit // 2 = JitIL + // 3 = JIT ARM int iCPUCore; // JIT (shared between JIT and JITIL)