From 9840ed1444727de3efe976d16cca6ef725859312 Mon Sep 17 00:00:00 2001 From: Raffson Date: Sun, 18 Sep 2022 17:44:49 +0200 Subject: [PATCH] Introduce .retribution save-files Keeping .liberation since we'd want stay compatible for as long as possible --- qt_ui/windows/QLiberationWindow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qt_ui/windows/QLiberationWindow.py b/qt_ui/windows/QLiberationWindow.py index 45203d82..f8b9fde4 100644 --- a/qt_ui/windows/QLiberationWindow.py +++ b/qt_ui/windows/QLiberationWindow.py @@ -318,7 +318,7 @@ class QLiberationWindow(QMainWindow): self, "Select game file to open", dir=save_dir, - filter="*.liberation", + filter="*.retribution;;*.liberation", ) if file is not None and file[0] != "": game = persistency.load_game(file[0]) @@ -345,7 +345,7 @@ class QLiberationWindow(QMainWindow): self, "Save As", dir=save_dir, - filter="*.liberation", + filter="*.retribution;;*.liberation", ) if file is not None: self.game.savepath = file[0] @@ -361,7 +361,7 @@ class QLiberationWindow(QMainWindow): """ window_title = f"DCS Retribution - v{VERSION}" if save_path: # appending the file name to title as it is updated - file_name = save_path.split("/")[-1].split(".liberation")[0] + file_name = save_path.split("/")[-1].rsplit(".", 1)[0] window_title = f"{window_title} - {file_name}" self.setWindowTitle(window_title) @@ -410,7 +410,7 @@ class QLiberationWindow(QMainWindow): self, "Could not load save game", "The save game you have loaded is incompatible with this " - "version of DCS Liberation.\n" + "version of DCS Retribution.\n" "\n" f"{traceback.format_exc()}", QMessageBox.Ok,