| 52 | static IDirect3D9* (WINAPI *_Direct3DCreate9)(UINT SDKVersion); |
| 53 | |
| 54 | static void LoadD3D9Library(void) { |
| 55 | static const struct DynamicLibSym funcs[] = { |
| 56 | DynamicLib_ReqSym(Direct3DCreate9) |
| 57 | }; |
| 58 | static const cc_string path = String_FromConst("d3d9.dll"); |
| 59 | void* lib; |
| 60 | DynamicLib_LoadAll(&path, funcs, Array_Elems(funcs), &lib); |
| 61 | |
| 62 | if (lib) return; |
| 63 | Logger_FailToStart("Failed to load d3d9.dll. You may need to install Direct3D9."); |
| 64 | } |
| 65 | |
| 66 | static void CreateD3D9Instance(void) { |
| 67 | int ver = D3D_SDK_VERSION; |
no test coverage detected