def launch_game(self):
self.switch_monitor('ON')
self.main_window.hide()
while Gtk.events_pending():
Gtk.main_iteration()
if self.launcher_type == 'gog':
launch_command = self.install_dir + '/' + self.game_name + '/start_gog.sh'
else:
launch_command = self.install_dir + '/' + self.game_name + '/start_gn.sh'
os.system(self.command_before)
os.system(launch_command)
os.system(self.command_after)
self.switch_monitor('OFF')
self.config_save()
sys.exit()
评论列表
文章目录