Beispiel #1
0
 def install(self):
     """Run Gamecube or Wii game"""
     NoticeDialog(
         'Please activate the Dolphin PPA reposiories in order to '
         'install Dolphin'
     )
     super(dolphin, self).install()
Beispiel #2
0
        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"))
Beispiel #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)
Beispiel #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()
Beispiel #5
0
 def delete_cb(self, result, error):
     if error:
         logger.error(error)
         NoticeDialog("Something went wrong while deleting the game")
     self.destroy()
Beispiel #6
0
 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)
Beispiel #7
0
 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)