def launch_game(self):
self.switch_monitor('ON')
self.main_window.hide()
while Gtk.events_pending():
Gtk.main_iteration()
self.set_environ()
self.set_win_ver_command()
self.set_mouse_capture_command()
self.set_additions_command()
self.set_launch_command()
exe_name, exe_path_no_exe = self.get_exe_path()
cd_command = 'cd "' + self.install_dir + '/' + self.game_name + \
'/game/' + exe_path_no_exe + '"'
full_command = cd_command + '\n' + \
self.win_ver_command + '\n' + \
self.mouse_capture_command + '\n' + \
self.additions_command + '\n' + \
self.launch_command
os.system(self.command_before)
os.system(full_command)
os.system(self.command_after)
self.switch_monitor('OFF')
sys.exit()
评论列表
文章目录