launcher_native.py 文件源码

python
阅读 26 收藏 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()

        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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号