Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Draft: hooklib: Add D3D11 and DXGI graphics hooks - [opened] #70

Description

@icex2

In GitLab by @felix on Oct 25, 2021, 22:19

Merges gfx -> master

New Feature

Summary

Add D3D11 and DXGI graphics hooks and a fullscreen fix for Initial D Zero.

Description

IDZ only supports D3D11 and Ongeki/Unity uses D3D11 by default so the existing D3D9 graphics hook would not apply to them. I also wanted to play Initial D Zero in full fullscreen or in borderless windowed.

Related Issue

The Initial D Zero fullscreen issue was documented and workaround binary patches were made and I like to run the game executables as close to stock as possible so I wanted to fix this at the API level.

How Has This Been Tested?

I tested Initial D Zero running in both windowed toggled via segatools.ini and seeing if it would run and stay maximized. I also tested to make sure Ongeki would startup and not crash in DXGI or D3D11 initialization (now I see why some people say that older Unity does not use D3D11 properly, they use both DXGI 1.0 and 1.1!).

Checklist

  • Tested with the following games:
    • Initial D Zero 1.31
    • Initial D Zero 2.11
    • Initial D Zero 2.30
    • Ongeki 1.20
  • Followed the developer (style) guidelines
  • Updated existing doc of or add new doc to README file(s)
  • Updated development documentation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions