diff --git a/changelog.md b/changelog.md index 10b92049..422c6e8a 100644 --- a/changelog.md +++ b/changelog.md @@ -23,6 +23,7 @@ Saves from 6.x are not compatible with 7.0. ## Fixes * **[Campaign]** Fixed a longstanding bug where oversized airlifts could corrupt a save with empty convoys. +* **[Engine]** Fixed crash in startup caused by a corrupted Liberation preferences file. * **[Modding]** Fixed an issue where Falklands campaigns created or edited with new versions of DCS could not be loaded. * **[Modding]** Fixed decoding of campaign yaml files to use UTF-8 rather than the system locale's default. It's now possible to use "Bf 109 K-4 Kurfürst" as a preferred aircraft type. * **[Mission Generation]** Planes will no longer spawn in helipads that are not also designated for fixed wing parking. diff --git a/qt_ui/liberation_install.py b/qt_ui/liberation_install.py index 2371ddfd..5ffd6610 100644 --- a/qt_ui/liberation_install.py +++ b/qt_ui/liberation_install.py @@ -36,7 +36,9 @@ def init(): "ignore_empty_install_directory", False ) is_first_start = False - except KeyError: + except (KeyError, ValueError): + # KeyError in case of missing contents, ValueError in case of decoding + # errors from a corrupted file. __dcs_saved_game_directory = "" __dcs_installation_directory = "" __last_save_file = ""