Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
On CoreParemeter member object creation make sure to set bEnableDebug…
…ging, 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.
  • Loading branch information
Sonicadvance1 committed Aug 16, 2013
1 parent 367f294 commit da560ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/Core/Src/CoreParameter.cpp
Expand Up @@ -20,6 +20,7 @@

SCoreStartupParameter::SCoreStartupParameter()
: hInstance(0),
bEnableDebugging(false), bAutomaticStart(false), bBootToPause(false),
bJITNoBlockCache(false), bJITBlockLinking(true),
bJITOff(false),
bJITLoadStoreOff(false), bJITLoadStorelXzOff(false),
Expand Down Expand Up @@ -54,6 +55,8 @@ SCoreStartupParameter::SCoreStartupParameter()
void SCoreStartupParameter::LoadDefaults()
{
bEnableDebugging = false;
bAutomaticStart = false;
bBootToPause = false;
iCPUCore = 1;
bCPUThread = false;
bSkipIdle = false;
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/Src/CoreParameter.h
Expand Up @@ -94,6 +94,7 @@ struct SCoreStartupParameter
// 0 = Interpreter
// 1 = Jit
// 2 = JitIL
// 3 = JIT ARM
int iCPUCore;

// JIT (shared between JIT and JITIL)
Expand Down

0 comments on commit da560ec

Please sign in to comment.