From 6924e04b74a68d70991b75ee5b32d4d4d689e2fe Mon Sep 17 00:00:00 2001 From: Malacath Date: Sat, 29 Jan 2022 17:08:03 +0100 Subject: [PATCH] Fix crash in speedrun mode --- CHANGELOG.md | 7 +++++++ source/playlunky/mod/mod_manager.cpp | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d50157..5d1ffc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.13.1] - 2021-01-29 + + + +### Fixed +- Crash when running speedrun mode + ## [0.13.0] - 2021-01-28 diff --git a/source/playlunky/mod/mod_manager.cpp b/source/playlunky/mod/mod_manager.cpp index 3f0f5a6..c633232 100644 --- a/source/playlunky/mod/mod_manager.cpp +++ b/source/playlunky/mod/mod_manager.cpp @@ -823,7 +823,11 @@ void ModManager::PostGameInit(const class PlaylunkySettings& settings) PatchCharacterDefinitions(mVfs, settings); - InitBugFixes(mVfs, settings, db_folder, db_original_folder); + const bool speedrun_mode = settings.GetBool("general_settings", "speedrun_mode", false); + if (!speedrun_mode) + { + InitBugFixes(mVfs, settings, db_folder, db_original_folder); + } Spelunky_InitSoundManager([](const char* file_path) {