narzoul / DDrawCompat

DirectDraw and Direct3D 1-7 compatibility, performance and visual enhancements for Windows Vista, 7, 8, 10 and 11
BSD Zero Clause License
939 stars 70 forks source link

Determine DirectX an app uses #227

Closed ghost closed 11 months ago

ghost commented 1 year ago

Is it possible for DDrawCompat to determine what version of DirectX an application is based on? I cannot find anything about it in log files.

narzoul commented 1 year ago

Why do you need to know? The proper answer could depend on that.

For DirectDraw specifically, you could try to guess the minimum needed version based on which interfaces are used by looking at the debug logs. But that might not be entirely accurate either, since an application might depend e.g. on bug fixes in later DirectX releases, and they aren't required to use the latest available interface versions. A game might ship with DirectX 6 but use only DirectDraw interfaces available in DirectX 3. Also, DirectX consists of other components too, like DirectSound and DirectInput, and games could be compatible with different versions of each. It's probably best to refer to the particular game's documentation, or check which version ships with its install media.