|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
Go to the source code of this file.
Typedefs | |
| typedef BOOL(* | DDraw_EnumCallbackExA) (GUID *lpGUID, LPSTR lpDriverDescription, LPSTR lpDriverName, LPVOID lpContext, HMONITOR hm) |
Functions | |
| bool | dttr_graphics_hooks_init (const DTTR_Mods_Context *ctx) |
| void | dttr_graphics_hooks_cleanup (const DTTR_Mods_Context *ctx) |
| HRESULT | dttr_hook_directdraw_create_ex_callback (DTTR_PCDOGS_T_Win32_GUID *guid, void **ddraw_out, DTTR_PCDOGS_T_Win32_GUID *iid, DTTR_PCDOGS_T_COM_IUnknown *outer) |
| HRESULT | dttr_hook_directdraw_enumerate_ex_a_callback (DDraw_EnumCallbackExA lpCallback, LPVOID lpContext, DWORD dwFlags) |
| typedef BOOL(* DDraw_EnumCallbackExA) (GUID *lpGUID, LPSTR lpDriverDescription, LPSTR lpDriverName, LPVOID lpContext, HMONITOR hm) |
Definition at line 18 of file hooks_private.h.
| void dttr_graphics_hooks_cleanup | ( | const DTTR_Mods_Context * | ctx | ) |
Definition at line 236 of file hooks.c.
References ctx, DTTR_Core_PatchGroupRelease(), free, graphics_byte_patch_group, graphics_hook_ddraw7, graphics_import_thunk_patch_group, and NULL.
Referenced by cleanup_runtime().
| bool dttr_graphics_hooks_init | ( | const DTTR_Mods_Context * | ctx | ) |
Definition at line 190 of file hooks.c.
References ctx, DTTR_ARRAY_COUNT, dttr_config, dttr_graphics_init(), dttr_hook_directdraw_create_ex_callback(), dttr_hook_directdraw_enumerate_ex_a_callback(), DTTR_LOG_ERROR, DTTR_PCDOGS_F_DDraw_CreateEx, DTTR_PCDOGS_F_DDraw_EnumerateExA, dttr_sidecar_install_pcdogs_patch_group(), DTTR_VERTEX_PRECISION_SUBPIXEL, get_or_create_ddraw7(), graphics_byte_patch_group, graphics_byte_patches, graphics_hook_hwnd, graphics_import_thunk_patch_group, and NULL.
Referenced by install_required_sidecar_hooks().
| HRESULT dttr_hook_directdraw_create_ex_callback | ( | DTTR_PCDOGS_T_Win32_GUID * | guid, |
| void ** | ddraw_out, | ||
| DTTR_PCDOGS_T_Win32_GUID * | iid, | ||
| DTTR_PCDOGS_T_COM_IUnknown * | outer ) |
Definition at line 135 of file hooks.c.
References DTTR_LOG_DEBUG, DTTR_LOG_ERROR, DTTR_PCDOGS_D_D3D_CreateTextureSurface_DDrawObject, DTTR_ResultOK(), dttr_sidecar_result_detail(), get_or_create_ddraw7(), S_OK, store_pointer(), and DTTR_Graphics_COM_DirectDraw7::vtbl.
Referenced by dttr_graphics_hooks_init().
| HRESULT dttr_hook_directdraw_enumerate_ex_a_callback | ( | DDraw_EnumCallbackExA | lpCallback, |
| LPVOID | lpContext, | ||
| DWORD | dwFlags ) |
Definition at line 168 of file hooks.c.
References DTTR_LOG_DEBUG, DWORD, NULL, and S_OK.
Referenced by dttr_graphics_hooks_init().