|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include "graphics_com_private.h"#include "graphics_private.h"#include <dttr_log.h>#include <khash.h>#include <limits.h>#include <stdlib.h>#include <string.h>#include <xxhash.h>Go to the source code of this file.
Data Structures | |
| struct | surface_texture_cache_seed |
|
static |
Definition at line 135 of file com_directdrawsurface7.c.
References blit_rect, and rect.
Referenced by ddrawsurface7_blt().
|
static |
Definition at line 105 of file com_directdrawsurface7.c.
References blit_rect, rect, and S_OK.
Referenced by ddrawsurface7_blt().
|
static |
Definition at line 796 of file com_directdrawsurface7.c.
References self.
|
static |
Definition at line 841 of file com_directdrawsurface7.c.
References blit_rect, blit_rect_clip_to_surface(), blit_rect_from_optional(), bpp, ddrawsurface7_blt(), DTTR_INVALID_TEXTURE, DWORD, flags, S_OK, self, src, srcRect, srcSurf, surface_texture_release(), surface_texture_retain(), surface_upload_texture(), x, and y.
Referenced by ddrawsurface7_blt().
|
static |
Definition at line 1028 of file com_directdrawsurface7.c.
References caps, dttr_graphics_com_create_directdrawsurface7(), S_OK, and self.
|
static |
Definition at line 1104 of file com_directdrawsurface7.c.
References ddrawsurface7_getoverlayposition(), S_OK, self, x, and y.
Referenced by ddrawsurface7_getoverlayposition().
|
static |
Definition at line 1154 of file com_directdrawsurface7.c.
References d, desc, DTTR_SIZEOF_DDSURFACEDESC, DTTR_SIZEOF_DDSURFACEDESC2, DWORD, S_OK, self, size, and surface_fill_desc().
|
static |
Definition at line 748 of file com_directdrawsurface7.c.
References dttr_graphics_com_create_direct3d_texture2(), NULL, S_OK, and self.
|
static |
Definition at line 800 of file com_directdrawsurface7.c.
References free, NULL, self, and surface_texture_release().
|
static |
Definition at line 1242 of file com_directdrawsurface7.c.
References colorKey, ddrawsurface7_setcolorkey(), DWORD, flags, S_OK, self, and surface_upload_texture().
Referenced by ddrawsurface7_setcolorkey().
|
static |
Definition at line 1272 of file com_directdrawsurface7.c.
References ddrawsurface7_unlock(), rect, S_OK, self, and surface_upload_texture().
Referenced by ddrawsurface7_unlock().
| DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_addattachedsurface | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| void * | surf ) |
References self.
| DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_bltbatch | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| void * | batch, | ||
| DWORD | count, | ||
| DWORD | flags ) |
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD DWORD void void DWORD flags DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_deleteattachedsurface | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| DWORD | flags, | ||
| void * | surf ) |
References DTTR_COM_NOOP_HRESULT, DWORD, flags, and self.
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD DWORD void void DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void void *cb DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_enumoverlayzorders | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| DWORD | flags, | ||
| void * | ctx, | ||
| void * | cb ) |
| DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_getbltstatus | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| DWORD | flags ) |
| DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_initialize | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| void * | dd, | ||
| void * | desc ) |
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_pagelock | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| DWORD | flags ) |
References DTTR_COM_NOOP_HRESULT, DWORD, flags, and self.
| DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_releasedc | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| HDC | dc ) |
References self.
References DTTR_COM_NOOP_HRESULT, DTTR_COM_STUB_SET, DWORD, and self.
| DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_setoverlayposition | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| LONG | x, | ||
| LONG | y ) |
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void void DWORD DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void *tag DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_setpriority | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| DWORD | priority ) |
References DTTR_COM_NOOP_HRESULT, DTTR_COM_STUB_SET, DWORD, and self.
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_setsurfacedesc | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| void * | desc, | ||
| DWORD | flags ) |
References desc, DTTR_COM_NOOP_HRESULT, DWORD, flags, and self.
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags DTTR_COM_NOOP_HRESULT | ( | ddrawsurface7_updateoverlayzorder | , |
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| DWORD | flags, | ||
| void * | refSurf ) |
References DTTR_COM_NOOP_HRESULT, DTTR_COM_STUB_SET, DWORD, flags, and self.
| DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_COM_STUB_SET | ( | ddrawsurface7_getclipper | , |
| void * | , | ||
| NULL | , | ||
| DTTR_Graphics_COM_DirectDrawSurface7 * | self ) |
References DTTR_COM_STUB_SET, DWORD, flags, NULL, and self.
| DTTR_COM_STUB_SET | ( | ddrawsurface7_getdc | , |
| HDC | , | ||
| NULL | , | ||
| DTTR_Graphics_COM_DirectDrawSurface7 * | self ) |
| DTTR_COM_STUB_SET | ( | ddrawsurface7_getpalette | , |
| void * | , | ||
| NULL | , | ||
| DTTR_Graphics_COM_DirectDrawSurface7 * | self ) |
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void void DWORD DWORD flags DTTR_COM_STUB_SET | ( | ddrawsurface7_getprivatedata | , |
| DWORD | , | ||
| 0 | , | ||
| DTTR_Graphics_COM_DirectDrawSurface7 * | self, | ||
| void * | tag, | ||
| void * | data ) |
References data, DTTR_COM_NOOP_HRESULT, DTTR_COM_STUB_SET, DWORD, self, and tag.
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void void DWORD DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void *tag DTTR_COM_STUB_SET | ( | ddrawsurface7_getuniquenessvalue | , |
| DWORD | , | ||
| 1 | , | ||
| DTTR_Graphics_COM_DirectDrawSurface7 * | self ) |
References DTTR_COM_NOOP_HRESULT, DTTR_COM_STUB_SET, DWORD, and self.
| DTTR_Graphics_COM_DirectDrawSurface7 * dttr_graphics_com_create_directdrawsurface7 | ( | uint32_t | width, |
| uint32_t | height, | ||
| uint32_t | bpp, | ||
| uint32_t | r_mask, | ||
| uint32_t | g_mask, | ||
| uint32_t | b_mask, | ||
| uint32_t | a_mask ) |
Definition at line 1453 of file com_directdrawsurface7.c.
References DTTR_Graphics_COM_DirectDrawSurface7::a_mask, DTTR_Graphics_COM_DirectDrawSurface7::b_mask, bpp, DTTR_Graphics_COM_DirectDrawSurface7::bpp, dttr_graphics_com_create_direct3d_texture2(), dttr_graphics_com_validate_directdrawsurface7(), free, DTTR_Graphics_COM_DirectDrawSurface7::g_mask, DTTR_Graphics_COM_DirectDrawSurface7::height, NULL, DTTR_Graphics_COM_DirectDrawSurface7::pitch, DTTR_Graphics_COM_DirectDrawSurface7::pixels, DTTR_Graphics_COM_DirectDrawSurface7::r_mask, DTTR_Graphics_COM_DirectDrawSurface7::refcount, S_OK, DTTR_Graphics_COM_DirectDrawSurface7::texture, DTTR_Graphics_COM_DirectDrawSurface7::vtbl, vtbl, and DTTR_Graphics_COM_DirectDrawSurface7::width.
Referenced by ddraw7_createsurface(), and ddrawsurface7_getattachedsurface().
| HRESULT dttr_graphics_com_validate_directdrawsurface7 | ( | uint32_t | width, |
| uint32_t | height, | ||
| uint32_t | bpp, | ||
| uint32_t * | out_pitch, | ||
| size_t * | out_pixel_size ) |
Definition at line 65 of file com_directdrawsurface7.c.
References bpp, NULL, S_OK, and surface_bgra_upload_size().
Referenced by ddraw7_createsurface(), and dttr_graphics_com_create_directdrawsurface7().
| void dttr_graphics_surface_texture_cache_reset | ( | ) |
Definition at line 158 of file com_directdrawsurface7.c.
References NULL.
Referenced by dttr_graphics_cleanup(), and init_common_state().
| if | ( | ! | desc | ) |
Definition at line 1201 of file com_directdrawsurface7.c.
| else if | ( | size | = = DTTR_SIZEOF_DDSURFACEDESC || size == DTTR_SIZEOF_DDSURFACEDESC2 | ) |
Definition at line 1208 of file com_directdrawsurface7.c.
References d, desc, DTTR_SIZEOF_DDSURFACEDESC, DTTR_SIZEOF_DDSURFACEDESC2, self, size, and surface_fill_desc().
|
static |
|
static |
Definition at line 40 of file com_directdrawsurface7.c.
References size.
Referenced by dttr_graphics_com_validate_directdrawsurface7(), surface_texture_create_or_retain(), surface_texture_update_unique(), and surface_upload_texture().
|
static |
Converts ARGB4444 surface pixels to BGRA8888 pixels.
Definition at line 270 of file com_directdrawsurface7.c.
References dst, h, r, src, w, x, and y.
Referenced by surface_upload_texture().
|
static |
Converts RGB565 pixels to BGRA8888 and applies black/colorkey transparency.
Definition at line 297 of file com_directdrawsurface7.c.
References dst, h, r, src, w, x, and y.
Referenced by surface_upload_texture().
|
static |
Definition at line 326 of file com_directdrawsurface7.c.
References NULL, self, and size.
Referenced by surface_upload_texture().
|
static |
Fills a caller-provided DDSURFACEDESC2 buffer from surface state.
Definition at line 1143 of file com_directdrawsurface7.c.
References d, self, and surface_fill_pixelformat().
Referenced by ddrawsurface7_getsurfacedesc(), and if().
|
static |
Definition at line 254 of file com_directdrawsurface7.c.
References self.
Referenced by surface_fill_desc().
|
static |
Definition at line 348 of file com_directdrawsurface7.c.
Referenced by surface_upload_texture().
|
static |
Ends and presents the current frame when a frame is active.
Definition at line 646 of file com_directdrawsurface7.c.
References dttr_backend, and dttr_graphics_end_frame().
|
static |
Definition at line 377 of file com_directdrawsurface7.c.
Referenced by surface_texture_create_or_retain(), and surface_texture_update_unique().
|
static |
Definition at line 167 of file com_directdrawsurface7.c.
References NULL.
Referenced by surface_texture_cache_insert_locked().
|
static |
Definition at line 176 of file com_directdrawsurface7.c.
References surface_texture_cache_ensure_initialized().
Referenced by surface_texture_create_or_retain(), and surface_texture_update_unique().
|
static |
Definition at line 232 of file com_directdrawsurface7.c.
References self.
Referenced by surface_upload_texture().
|
static |
Definition at line 206 of file com_directdrawsurface7.c.
References dttr_backend, DTTR_INVALID_TEXTURE, and st.
Referenced by surface_texture_create_or_retain().
|
static |
Definition at line 191 of file com_directdrawsurface7.c.
Referenced by surface_texture_release(), and surface_texture_update_unique().
|
static |
Creates or reuses a staged GPU texture handle for a CPU pixel buffer.
Definition at line 434 of file com_directdrawsurface7.c.
References dttr_backend, DTTR_INVALID_TEXTURE, DTTR_LOG_ERROR, DTTR_MAX_STAGED_TEXTURES, NULL, DTTR_StagedTexture::refcount, size, st, state, surface_bgra_upload_size(), surface_queue_pending_upload_locked(), surface_texture_cache_insert_locked(), and surface_texture_cache_lookup_locked().
Referenced by surface_upload_texture().
|
static |
Definition at line 391 of file com_directdrawsurface7.c.
References dttr_backend, and state.
Referenced by surface_upload_texture().
|
static |
Releases one staged texture reference and destroys GPU resources at zero refs.
Definition at line 521 of file com_directdrawsurface7.c.
References dttr_backend, DTTR_INVALID_TEXTURE, free, NULL, st, state, and surface_texture_cache_remove_locked().
Referenced by ddrawsurface7_blt(), ddrawsurface7_release(), and surface_upload_texture().
|
static |
Definition at line 410 of file com_directdrawsurface7.c.
References dttr_backend, st, and state.
Referenced by ddrawsurface7_blt().
|
static |
Replaces pixel data and dimensions for an existing uniquely-owned staged texture handle.
Definition at line 571 of file com_directdrawsurface7.c.
References dttr_backend, NULL, size, st, state, surface_bgra_upload_size(), surface_queue_pending_upload_locked(), surface_texture_cache_insert_locked(), and surface_texture_cache_remove_locked().
Referenced by surface_upload_texture().
|
static |
Uploads dirty surface pixels to the staged texture cache.
Definition at line 653 of file com_directdrawsurface7.c.
References DTTR_INVALID_TEXTURE, NULL, self, surface_bgra_upload_size(), surface_convert_argb4444_to_bgra8888(), surface_convert_rgb565_to_bgra8888(), surface_ensure_convert_buffer(), surface_hash_source_pixels(), surface_texture_cache_key(), surface_texture_create_or_retain(), surface_texture_refcount(), surface_texture_release(), and surface_texture_update_unique().
Referenced by ddrawsurface7_blt(), ddrawsurface7_setcolorkey(), and ddrawsurface7_unlock().
| blit_rect |
Definition at line 38 of file com_directdrawsurface7.c.
Referenced by blit_rect_clip_to_surface(), blit_rect_from_optional(), and ddrawsurface7_blt().
| DTTR_Graphics_COM_DirectDrawSurface7 *self DWORD void* colorKey |
Definition at line 1080 of file com_directdrawsurface7.c.
Referenced by ddrawsurface7_setcolorkey().
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD DWORD void void DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void* ctx |
Definition at line 1005 of file com_directdrawsurface7.c.
| DDSURFACEDESC2* d = (DDSURFACEDESC2 *)desc |
Definition at line 1205 of file com_directdrawsurface7.c.
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void void* data |
Definition at line 1343 of file com_directdrawsurface7.c.
Referenced by DTTR_COM_STUB_SET(), DTTR_Config_ChoiceCount(), DTTR_Config_ChoiceGet(), DTTR_Config_Choices(), find_case_match(), and read_fixture_file().
Definition at line 1190 of file com_directdrawsurface7.c.
| DTTR_SIZEOF_DDSCAPS2 |
Definition at line 1065 of file com_directdrawsurface7.c.
Definition at line 1383 of file com_directdrawsurface7.c.
Definition at line 1192 of file com_directdrawsurface7.c.
Referenced by dispatch_event_until_consumed(), dttr_audio_handle_device_event(), dttr_imgui_process_event(), DTTR_ImGuiDialog_ProcessEvent(), DTTR_ImGuiDialog_ProcessEvents(), dttr_inputs_handle_device_event(), dttr_mods_after_event(), dttr_mods_before_event(), dttr_mods_handle_event(), dttr_movies_handle_event(), dttr_sidecar_handle_sdl_event(), dttr_sidecar_poll_sdl_events(), DTTR_STORAGE_SLOT(), event_cancels_binding(), process_events(), and source_from_event().
Definition at line 1020 of file com_directdrawsurface7.c.
| void* fmt |
Definition at line 1129 of file com_directdrawsurface7.c.
Referenced by DTTR_Log(), DTTR_Log_Unchecked(), dttr_vlog_unchecked(), and errors_addf().
Definition at line 1316 of file com_directdrawsurface7.c.
Referenced by acquire_upload_pool_slot(), aob_scan_with(), append_table_header_text(), begin_clear_pass(), begin_draw_pass_if_needed(), begin_frame(), browse_callback(), build_saves_dir(), child_iso_path(), choice_combo(), cleanup(), cleanup(), cleanup_sigscan_cache(), clear_sample_wave(), close_audio(), close_gamepad(), collect_and_upload_pending(), compile_shader(), compute_exe_hash(), config_choice_list(), config_format_field_string(), config_object_for_section(), CONFIG_PARSE_CHOICE_FN(), config_parse_float(), config_path_from_args(), config_schema_find(), confirm_discard_changes(), create_device(), create_dir_if_set(), create_fbo(), create_program(), create_render_textures(), create_shader(), d3d7_createvertexbuffer(), d3d_device7_clear_bound_texture(), d3d_device7_get_transform_state(), d3d_device7_set_transform_state(), d3ddevice7_gettransform(), d3ddevice7_multiplytransform(), ddraw7_createclipper(), ddraw7_createpalette(), ddraw7_createsurface(), ddrawsurface7_queryinterface(), ddrawsurface7_release(), decode_prologue(), default_load_entry(), destroy_device(), destroy_mod_context(), destroy_sample_audio_object(), destroy_stream_objects(), destroy_window(), dialog_parent_window(), drain_eof(), draw_centered_text(), draw_copyable_stack_trace(), draw_dump_text(), draw_mod_toggle_row(), draw_shortcut_debug_row(), draw_shortcut_debug_window(), draw_tabs(), draw_toolbar(), dttr_audio_cleanup(), DTTR_COM_STUB_SET(), DTTR_COM_STUB_SET(), DTTR_COM_STUB_SET(), DTTR_COM_STUB_SET(), DTTR_COM_STUB_SET(), DTTR_COM_STUB_SET(), DTTR_COM_STUB_SET(), DTTR_COM_STUB_SET(), DTTR_Compat_CreateProcess(), DTTR_Config_ChoiceGet(), DTTR_Config_Choices(), DTTR_Config_LastError(), DTTR_Config_Load(), DTTR_Config_Save(), DTTR_Config_SchemaGet(), DTTR_Core_HookAOB(), DTTR_Core_HookAttachFunction(), DTTR_Core_HookAttachPointer(), DTTR_Core_HookCleanupAllChecked(), DTTR_Core_HookFunction(), DTTR_Core_HookPatchBytes(), DTTR_Core_HookPointer(), dttr_core_patch_group_context(), DTTR_Core_PatchAOBRel32Jump(), DTTR_Core_PatchBytes(), DTTR_Core_PatchGroupCreate(), DTTR_Core_PatchGroupHookFunction(), DTTR_Core_PatchGroupHookPointer(), DTTR_Core_PatchGroupInstallTargets(), DTTR_Core_PatchGroupPatchBytes(), DTTR_Core_PatchGroupPatchRel32Jump(), DTTR_Core_PatchGroupRelease(), DTTR_Core_PatchRel32Jump(), DTTR_CrashDump_ClearSymbolProvider(), DTTR_CrashDump_FormatStackTrace(), DTTR_CrashDump_Write(), DTTR_Errors_ShowMessage(), dttr_game_data_find_data_segment(), dttr_game_data_resolve_existing_read_path(), dttr_game_data_resolve_media_path(), dttr_game_hooks_cleanup(), dttr_game_hooks_init(), dttr_graphics_cleanup(), dttr_graphics_com_create_directdrawsurface7(), dttr_graphics_com_validate_directdrawsurface7(), dttr_graphics_ensure_staged_texture(), dttr_graphics_hooks_cleanup(), dttr_graphics_hooks_init(), dttr_graphics_init(), dttr_graphics_opengl_init(), dttr_graphics_sdl3gpu_create_pipelines(), dttr_graphics_sdl3gpu_init(), dttr_graphics_sdl3gpu_resize_render_textures(), dttr_graphics_surface_texture_cache_reset(), dttr_hook_cleanup_title_resources_callback(), dttr_hook_directdraw_enumerate_ex_a_callback(), DTTR_Hook_WinMainCallback(), DTTR_ImGuiDialog_BeginRoot(), DTTR_ImGuiDialog_DrawHeader(), dttr_inputs_hook_dinput_poll_callback(), dttr_inputs_hook_get_async_key_state_callback(), dttr_inputs_hooks_init(), DTTR_ISO_Open(), DTTR_Loader_GameSubpathAt(), DTTR_Loader_InjectSidecar(), DTTR_LoaderUI_ChoiceFromID(), DTTR_LoaderUI_ShowError(), DTTR_Mods_GetWriteExceptionReportFn(), dttr_mods_loaded_name(), dttr_movies_hooks_init(), dttr_mss_ail_allocate_sample_handle(), dttr_mss_ail_open_stream(), dttr_mss_ail_waveOutOpen(), dttr_mss_core_destroy_mixer(), dttr_mss_sdl_release_hooks(), dttr_mss_wave_decode_f32(), dttr_mss_wave_free(), dttr_mss_wave_parse(), DTTR_Path_CurrentDir(), DTTR_Path_ModuleDir(), DTTR_Path_ModuleSibling(), DTTR_Path_ResolveRelativeTo(), DTTR_PCDOGS_Hook_DataPointer(), DTTR_PCDOGS_PatchGroup_HookDataPointer(), DTTR_PCDOGS_PatchGroup_Install(), DTTR_SDL_ShowSimpleMessageBox(), dttr_sidecar_write_exception_report(), DTTR_Sigscan_Bytes(), dttr_test_find_case(), dttr_test_join_path(), dttr_test_pe_cstr(), dttr_test_pe_for_each_fixture(), dttr_test_pe_load_fixture(), dttr_test_run_case(), DTTR_Util_GetActiveActor(), DTTR_Util_PkgVisit_AsCollisionShape(), DTTR_Util_PkgVisit_AsLevelRuntimeData(), DTTR_Util_PkgVisit_AsLoadedEntry(), DTTR_Util_PkgVisit_AsMaterialEntry(), DTTR_Util_PkgVisit_AsMeshNode(), DTTR_Util_PkgVisit_AsSceneNode(), DTTR_Util_PkgVisit_AsSpriteContext(), DTTR_Util_PkgVisit_AsTOCEntry(), DTTR_Util_PkgWalk(), DTTR_Util_SameActor(), end_frame(), end_frame(), end_render_pass_if_active(), ensure_pcdogs_dbghelp_module(), ensure_video_texture(), enter_dbghelp_lock(), file_open_with_mode(), file_url_for_parent_dir(), find_stream(), find_summary_dump(), free_sample_audio(), function_chain_append(), function_chain_push_head(), function_link_create(), function_link_detach(), function_link_next_target(), gamepad_button_row_choice(), get_basic_frag_blob(), get_basic_vert_blob(), get_exe_dir(), get_full_path(), get_hwnd(), get_loader_dir(), get_mod_info(), graphics_api_driver_name(), has_audio_driver(), hook_create(), hook_find_function_chain(), init_dialog_imgui(), init_event(), init_sidecar_context(), init_state_from_args(), initialize_pcdogs_runtime(), install_one_target(), install_pointer_hook(), khash_t(), khash_t(), kvec_t(), labeled_input_text(), labeled_path_picker_with_dialog(), link_stream(), load_pe_image(), load_sample_frames(), log_file_path_dialog_callback(), log_win32_failure(), main(), make_shadow_path(), make_visit(), mount_fixture_dir(), msaa_enabled(), native_choose_game_source(), normalize_path_for_compare(), open_codec(), open_log_file(), open_log_file_dialog(), open_movie(), open_pcdogs_dir_dialog(), open_pcdogs_iso_dialog(), optional_path(), parse_aob(), patch_group_detach_checked(), patch_group_hook_symbol_function(), patch_group_uninstall_from(), pcdogs_file_open_detour(), pcdogs_path_dialog_callback(), pe_rva_bytes(), preference_slot(), prepare_audio(), present_video_frame_bgra(), queue_audio_frame(), queue_video_frame(), replay_batch_records(), report_dialog_failure(), report_file_open_failure(), request_reset_defaults(), require_sample(), reset_replay_state(), reset_video_buffer(), resolve_config_path(), resolve_loader_dir(), resolve_modules_dir(), resolve_nt_path_and_cwd(), resolve_sdl_dll_path(), resolve_sidecar_dll_path(), resolve_toc(), run_browse_dialog(), safe_relative_rejects_absolute_and_traversal_paths(), scan_mod_file(), scan_mods(), set_dump_dir(), set_mods_dir_from_config_path(), should_disable_watchdog(), show_startup_error(), show_tooltip(), surface_ensure_convert_buffer(), surface_texture_cache_ensure_initialized(), surface_texture_create_or_retain(), surface_texture_release(), surface_texture_update_unique(), surface_upload_texture(), target_original_slot(), test_blueprint_functions_resolve_and_match_abi(), test_expected_mss32_imports_are_hooked(), test_expected_pcdogs_signatures_resolve(), test_function_hooks_chain_and_detach(), test_patch_group_target_failure_rolls_back_only_new_entries(), test_pcdogs_generated_function_patch_specs_name_current_hooks(), test_pcdogs_generated_title_resource_patch_specs_use_current_names(), test_pcdogs_unstable_patch_specs_match_stable_shape(), test_pointer_hook_detach_restores_original(), try_fix_permissions(), try_open_configured_gamepad(), try_open_read_path(), unhandled_exception_filter(), unlink_stream(), unload_mod(), upload_pending_textures_gl(), upload_texture_data(), write_remote_payload(), write_remote_shim_data(), and zydis_decoder32().
| void* rect |
Definition at line 1189 of file com_directdrawsurface7.c.
Referenced by blit_rect_clip_to_surface(), blit_rect_from_optional(), ddrawsurface7_unlock(), and dttr_graphics_compute_present_rect().
| return S_OK |
Definition at line 1025 of file com_directdrawsurface7.c.
Definition at line 837 of file com_directdrawsurface7.c.
Definition at line 1206 of file com_directdrawsurface7.c.
Referenced by append_disassembly_from_bytes(), append_disassembly_window(), append_failed_instruction_decode(), check_overlap(), copy_memory_checked(), ddrawsurface7_getsurfacedesc(), draw_centered_text(), DTTR_Core_HookPatchBytes(), DTTR_Core_HookSigscan(), DTTR_Core_PatchBytes(), DTTR_Core_PatchGroupPatchBytes(), DTTR_ImGuiDialog_Button(), dttr_mss_ail_set_sample_file(), dttr_mss_wave_decode_f32(), DTTR_Sigscan_Bytes(), dttr_test_bytes_match_mask(), dttr_test_range_valid(), dttr_test_signed_range_valid(), dttr_test_zydis_decode32(), file_matches_physfs_file(), flush_patched_range(), format_instruction_at(), hook_create(), if(), load_sample_audio_from_memory(), load_sample_frames(), log_prologue_bytes(), masked_sigscan_count(), pe_rva_bytes(), queue_video_frame(), read_fixture_file(), sigscan_bytes(), surface_bgra_upload_size(), surface_ensure_convert_buffer(), surface_texture_create_or_retain(), surface_texture_update_unique(), themed_row_button(), and write_bytes().
Definition at line 991 of file com_directdrawsurface7.c.
Referenced by ddrawsurface7_blt(), and DTTR_COM_NOOP_HRESULT().
Definition at line 990 of file com_directdrawsurface7.c.
Referenced by ddrawsurface7_blt().
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void DTTR_Graphics_COM_DirectDrawSurface7 *self DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void* tag |
Definition at line 1342 of file com_directdrawsurface7.c.
Referenced by DTTR_COM_STUB_SET().
| DTTR_Graphics_COM_DirectDrawSurface7 DWORD DWORD void void DWORD flags DTTR_Graphics_COM_DirectDrawSurface7 void void *cb void* target |
Definition at line 1019 of file com_directdrawsurface7.c.
Referenced by assert_byte_patch_site(), assert_pointer_ff25_e8_target(), assert_targets_for_fixture(), build_rel32_jump(), dttr_test_assert_target_resolved(), hook_thunk_set_target(), install_one_target(), patch_spec_install(), patch_spec_target(), push_config_theme(), target_address(), target_original_slot(), test_cleanup_all_restores_hooks_and_allows_reuse(), test_overlapping_byte_patches_are_rejected(), and write_function_jump().
| void |
Definition at line 1066 of file com_directdrawsurface7.c.
Definition at line 1401 of file com_directdrawsurface7.c.
Definition at line 988 of file com_directdrawsurface7.c.
Referenced by d3d_device7_set_viewport(), ddrawsurface7_blt(), ddrawsurface7_getoverlayposition(), DTTR_COM_NOOP_HRESULT(), fill_mesh_seam_triangle(), khash_t(), surface_convert_argb4444_to_bgra8888(), and surface_convert_rgb565_to_bgra8888().
Definition at line 989 of file com_directdrawsurface7.c.
Referenced by d3d_device7_set_viewport(), ddrawsurface7_blt(), ddrawsurface7_getoverlayposition(), DTTR_COM_NOOP_HRESULT(), fill_mesh_seam_triangle(), khash_t(), surface_convert_argb4444_to_bgra8888(), surface_convert_rgb565_to_bgra8888(), and surface_hash_source_pixels().