From 3bb9ab68aeca85732e92b81c90498e78a4183138 Mon Sep 17 00:00:00 2001 From: "j4ck.fr0st" Date: Sun, 21 Feb 2010 12:56:18 +0000 Subject: [PATCH] Added proper initialization to CoreParameter. This caused some odd behavior after fixing some of our broken singletons in r5085 as some of the bools were true by default. Works-for-me(TM), please test if I missed anything. All values should be initialized with the default values from either configuration or datatype. Fixes Issue 2334 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5094 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/CoreParameter.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Source/Core/Core/Src/CoreParameter.cpp b/Source/Core/Core/Src/CoreParameter.cpp index a19781a23f..7ce1c3f8e4 100644 --- a/Source/Core/Core/Src/CoreParameter.cpp +++ b/Source/Core/Core/Src/CoreParameter.cpp @@ -30,6 +30,28 @@ #include "Core.h" // for bWii SCoreStartupParameter::SCoreStartupParameter() +: hInstance(0), hMainWindow(0), + bJITUnlimitedCache(false), bJITBlockLinking(false), + bJITOff(false), + bJITLoadStoreOff(false), bJITLoadStorelXzOff(false), + bJITLoadStorelwzOff(false), bJITLoadStorelbzxOff(false), + bJITLoadStoreFloatingOff(false), bJITLoadStorePairedOff(false), + bJITFloatingPointOff(false), bJITIntegerOff(false), + bJITPairedOff(false), bJITSystemRegistersOff(false), + bJITBranchOff(false), bJITProfiledReJIT(false), + bEnableFPRF(false), + bCPUThread(true), bDSPThread(false), + bSkipIdle(true), bNTSC(false), + bHLE_BS2(true), bUseFastMem(false), + bLockThreads(false), + bEnableCheats(false), bEnableIsoCache(false), + bRunCompareServer(false), bRunCompareClient(false), + iTLBHack(0), SelectedLanguage(0), + bWii(false), bWiiLeds(false), bWiiSpeakers(false), + bConfirmStop(false), bHideCursor(false), + bAutoHideCursor(false), bUsePanicHandlers(true), + iTheme(0), + iPosX(100), iPosY(100), iWidth(800), iHeight(600) { LoadDefaults(); }