1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Check protected games when loading previous game.

This commit is contained in:
Joe R 2023-03-15 20:52:13 -04:00
parent db0dbb84ec
commit 90c77ebd74

View file

@ -315,6 +315,8 @@ class Application:
# startup information
if self.getGameClass(self.opt.last_gameid):
self.nextgame.id = self.opt.last_gameid
elif self.opt.last_gameid in GI.PROTECTED_GAMES:
self.nextgame.id = GI.PROTECTED_GAMES.get(self.opt.last_gameid)
# load a holded or saved game
tmpgame = self.constructGame(self.gdb.getGamesIdSortedByName()[0])
self._load_held_or_saved_game(tmpgame)