コード例 #1
0
ファイル: dolphin.py プロジェクト: malkavi/lutris
 def install(self):
     """Run Gamecube or Wii game"""
     NoticeDialog(
         'Please activate the Dolphin PPA reposiories in order to '
         'install Dolphin'
     )
     super(dolphin, self).install()
コード例 #2
0
ファイル: reicast.py プロジェクト: zsh-754207424/lutris
        def on_runner_installed(*args):
            mapping_path = system.create_folder("~/.reicast/mappings")
            mapping_source = os.path.join(settings.RUNNER_DIR, "reicast/mappings")
            for mapping_file in os.listdir(mapping_source):
                shutil.copy(os.path.join(mapping_source, mapping_file), mapping_path)

            system.create_folder("~/.reicast/data")
            NoticeDialog(_("You have to copy valid BIOS files to ~/.reicast/data before playing"))
コード例 #3
0
 def on_folder_selected(self, dialog, response):
     if response != Gtk.ResponseType.OK:
         return
     target_path = dialog.get_current_folder()
     if not target_path:
         return
     issue_path = os.path.join(target_path, "lutris-issue-report.json")
     issue_info = self.get_issue_info()
     with open(issue_path, "w") as issue_file:
         json.dump(issue_info, issue_file, indent=2)
     dialog.destroy()
     NoticeDialog("Issue saved in %s" % issue_path)
コード例 #4
0
 def on_folder_selected(self, dialog, response, _dialog):
     if response != Gtk.ResponseType.ACCEPT:
         return
     target_path = dialog.get_filename()
     if not target_path:
         return
     issue_path = os.path.join(target_path, "lutris-issue-report.json")
     issue_info = self.get_issue_info()
     with open(issue_path, "w", encoding='utf-8') as issue_file:
         json.dump(issue_info, issue_file, indent=2)
     dialog.destroy()
     NoticeDialog(_("Issue saved in %s") % issue_path)
     self.destroy()
コード例 #5
0
ファイル: uninstall_game.py プロジェクト: legluondunet/lutris
 def delete_cb(self, result, error):
     if error:
         logger.error(error)
         NoticeDialog("Something went wrong while deleting the game")
     self.destroy()
コード例 #6
0
ファイル: steam.py プロジェクト: ezeenova/lutris
 def install(self):
     message = "Steam for Linux installation is not handled by Lutris.\n" \
         "Please go to " \
         "<a href='http://steampowered.com'>http://steampowered.com</a>" \
         " or install Steam with the package provided by your distribution."
     NoticeDialog(message)
コード例 #7
0
ファイル: sync.py プロジェクト: Yilnis/lutris-1
 def on_service_synced(self, caller, data):
     parent = self.get_toplevel()
     if not isinstance(parent, Gtk.Window):
         # The sync dialog may have closed
         parent = Gio.Application.get_default().props.active_window
     NoticeDialog("Games synced", parent=parent)