diff options
| author | comex <comexk@gmail.com> | 2014-11-05 19:36:12 -0500 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2014-11-05 19:36:12 -0500 |
| commit | 9d23a366c8fa71ebb1105d350486bb3921d6aec6 (patch) | |
| tree | b8f5834eb2f0b317f617f6e69b2d37fb47eae16e | |
| parent | be386e974bdadceea3adefa04bf031e665bd0a8c (diff) | |
Fix uninitialized GPU determinism mode for NAND titles or whatever.
m_strGPUDeterminismMode can be set by either the global or game
settings. Either way, it's then supposed to be parsed into an enum,
m_GPUDeterminismMode. However, the code to do this was placed right
after checking for game settings, which doesn't happen at all if there
isn't a valid title ID. Move it outside the if block.
| -rw-r--r-- | Source/Core/Core/BootManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Core/BootManager.cpp b/Source/Core/Core/BootManager.cpp index 2152e4e546..75cda73223 100644 --- a/Source/Core/Core/BootManager.cpp +++ b/Source/Core/Core/BootManager.cpp @@ -184,7 +184,6 @@ bool BootCore(const std::string& _rFilename) dsp_section->Get("Backend", &SConfig::GetInstance().sBackend, SConfig::GetInstance().sBackend); VideoBackend::ActivateBackend(StartUp.m_strVideoBackend); core_section->Get("GPUDeterminismMode", &StartUp.m_strGPUDeterminismMode, StartUp.m_strGPUDeterminismMode); - StartUp.m_GPUDeterminismMode = ParseGPUDeterminismMode(StartUp.m_strGPUDeterminismMode); for (unsigned int i = 0; i < MAX_SI_CHANNELS; ++i) { @@ -224,6 +223,8 @@ bool BootCore(const std::string& _rFilename) } } + StartUp.m_GPUDeterminismMode = ParseGPUDeterminismMode(StartUp.m_strGPUDeterminismMode); + // Movie settings if (Movie::IsPlayingInput() && Movie::IsConfigSaved()) { |
