mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Introduce .retribution save-files
Keeping .liberation since we'd want stay compatible for as long as possible
This commit is contained in:
parent
23b18c17ca
commit
9840ed1444
@ -318,7 +318,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
self,
|
self,
|
||||||
"Select game file to open",
|
"Select game file to open",
|
||||||
dir=save_dir,
|
dir=save_dir,
|
||||||
filter="*.liberation",
|
filter="*.retribution;;*.liberation",
|
||||||
)
|
)
|
||||||
if file is not None and file[0] != "":
|
if file is not None and file[0] != "":
|
||||||
game = persistency.load_game(file[0])
|
game = persistency.load_game(file[0])
|
||||||
@ -345,7 +345,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
self,
|
self,
|
||||||
"Save As",
|
"Save As",
|
||||||
dir=save_dir,
|
dir=save_dir,
|
||||||
filter="*.liberation",
|
filter="*.retribution;;*.liberation",
|
||||||
)
|
)
|
||||||
if file is not None:
|
if file is not None:
|
||||||
self.game.savepath = file[0]
|
self.game.savepath = file[0]
|
||||||
@ -361,7 +361,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
"""
|
"""
|
||||||
window_title = f"DCS Retribution - v{VERSION}"
|
window_title = f"DCS Retribution - v{VERSION}"
|
||||||
if save_path: # appending the file name to title as it is updated
|
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}"
|
window_title = f"{window_title} - {file_name}"
|
||||||
self.setWindowTitle(window_title)
|
self.setWindowTitle(window_title)
|
||||||
|
|
||||||
@ -410,7 +410,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
self,
|
self,
|
||||||
"Could not load save game",
|
"Could not load save game",
|
||||||
"The save game you have loaded is incompatible with this "
|
"The save game you have loaded is incompatible with this "
|
||||||
"version of DCS Liberation.\n"
|
"version of DCS Retribution.\n"
|
||||||
"\n"
|
"\n"
|
||||||
f"{traceback.format_exc()}",
|
f"{traceback.format_exc()}",
|
||||||
QMessageBox.Ok,
|
QMessageBox.Ok,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user