예제 #1
0
    def prelaunch(self):
        if not system.path_exists(os.path.join(self.prefix_path, "user.reg")):
            create_prefix(self.prefix_path, arch=self.wine_arch)
        prefix_manager = WinePrefixManager(self.prefix_path)
        if self.runner_config.get("autoconf_joypad", True):
            prefix_manager.configure_joypads()
        self.sandbox(prefix_manager)
        self.set_regedit_keys()
        self.setup_x360ce(self.runner_config.get("x360ce-path"))
        self.setup_dxvk(
            "dxvk",
            dxvk_manager=dxvk.DXVKManager(
                self.prefix_path,
                arch=self.wine_arch,
                version=self.runner_config.get("dxvk_version")),
        )

        # we don't want d9vk to restore d3d9.dll, because dxvk could set it already
        if bool(self.runner_config.get("d9vk")):
            self.setup_dxvk(
                "d9vk",
                dxvk_manager=dxvk.D9VKManager(
                    self.prefix_path,
                    arch=self.wine_arch,
                    version=self.runner_config.get("d9vk_version")),
            )
        return True
예제 #2
0
    def prelaunch(self):
        if not system.path_exists(os.path.join(self.prefix_path, "user.reg")):
            create_prefix(self.prefix_path, arch=self.wine_arch)
        prefix_manager = WinePrefixManager(self.prefix_path)
        if self.runner_config.get("autoconf_joypad", True):
            prefix_manager.configure_joypads()
        self.sandbox(prefix_manager)
        self.set_regedit_keys()
        self.setup_x360ce(self.runner_config.get("x360ce-path"))
        self.setup_dxvk(
            "dxvk",
            dxvk_manager=dxvk.DXVKManager(
                self.prefix_path,
                arch=self.wine_arch,
                version=self.runner_config.get("dxvk_version"),
            ),
        )

        # we don't want d9vk to restore d3d9.dll, because dxvk could set it already
        if bool(self.runner_config.get("d9vk")):
            self.setup_dxvk(
                "d9vk",
                dxvk_manager=dxvk.D9VKManager(
                    self.prefix_path,
                    arch=self.wine_arch,
                    version=self.runner_config.get("d9vk_version"),
                ),
            )
        try:
            self.setup_nine(self.runner_config.get("gallium_nine"))
        except nine.NineUnavailable as ex:
            raise GameConfigError("Unable to configure GalliumNine: %s" % ex)
        return True