launcher_wine.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:games_nebula 作者: yancharkin 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号