Skip to content

Commit

Permalink
GameWidget: Remove obsolete cloud saves code
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed Sep 14, 2023
1 parent c80013e commit 56b52a8
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions rare/components/tabs/games/game_widgets/game_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def __init__(self, rgame: RareGame, parent=None):
self.install_action = QAction(self.tr("Install"), self)
self.install_action.triggered.connect(self._install)

# self.sync_action = QAction(self.tr("Sync with cloud"), self)
# self.sync_action.triggered.connect(self.sync_saves)

self.desktop_link_action = QAction(self)
self.desktop_link_action.triggered.connect(
lambda: self._create_link(self.rgame.folder_name, "desktop")
Expand Down Expand Up @@ -144,9 +141,6 @@ def update_actions(self):
else:
self.addAction(self.install_action)

# if self.rgame.game.supports_cloud_saves:
# self.addAction(self.sync_action)

if desktop_links_supported() and self.rgame.is_installed:
if desktop_link_path(self.rgame.folder_name, "desktop").exists():
self.desktop_link_action.setText(self.tr("Remove Desktop link"))
Expand Down Expand Up @@ -209,8 +203,6 @@ def _on_reload_image(self) -> None:
def _launch(self, offline=False, skip_version_check=False):
if offline or (self.rgame.is_foreign and self.rgame.can_run_offline):
offline = True
# if self.rgame.game.supports_cloud_saves and not offline:
# self.syncing_cloud_saves = True
if self.rgame.has_update:
skip_version_check = True
self.rgame.launch(
Expand Down Expand Up @@ -261,21 +253,3 @@ def _create_link(self, name, link_type):
self.desktop_link_action.setText(self.tr("Create Desktop link"))
elif link_type == "start_menu":
self.menu_link_action.setText(self.tr("Create Start Menu link"))

# def sync_finished(self, app_name):
# self.syncing_cloud_saves = False

# def sync_game(self):
# try:
# sync = self.game_utils.cloud_save_utils.sync_before_launch_game(
# self.rgame.app_name, True
# )
# except Exception:
# sync = False
# if sync:
# self.syncing_cloud_saves = True

# def game_finished(self, app_name, error):
# if error:
# QMessageBox.warning(self, "Error", error)
# self.game_running = False

0 comments on commit 56b52a8

Please sign in to comment.