|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
Go to the source code of this file.
Functions | |
| DTTR_PCDOGS_T_File_Handle * | dttr_crt_hook_open_file_callback (const char *path, const char *mode) |
| uint32_t | dttr_hook_resolve_pcdogs_path_callback () |
| BOOL | dttr_hook_cleanup_title_resources_callback () |
| bool | dttr_game_hooks_init (const DTTR_Mods_Context *ctx) |
| void | dttr_game_hooks_cleanup (const DTTR_Mods_Context *ctx) |
| DTTR_PCDOGS_T_File_Handle * dttr_crt_hook_open_file_callback | ( | const char * | path, |
| const char * | mode ) |
Definition at line 248 of file hook_crt_open_file.c.
References DTTR_LOG_ERROR, file_open_with_mode(), IS_READ_ONLY_MODE, mode_wants_write(), redirect_path(), report_file_open_failure(), try_fix_permissions(), and try_open_read_path().
Referenced by dttr_game_hooks_init().
| void dttr_game_hooks_cleanup | ( | const DTTR_Mods_Context * | ctx | ) |
Definition at line 41 of file hooks.c.
References DTTR_Core_PatchGroupRelease(), game_targets, and NULL.
Referenced by cleanup_runtime().
| bool dttr_game_hooks_init | ( | const DTTR_Mods_Context * | ctx | ) |
Definition at line 10 of file hooks.c.
References ctx, DTTR_ARRAY_COUNT, dttr_crt_hook_open_file_callback(), dttr_hook_cleanup_title_resources_callback(), dttr_hook_resolve_pcdogs_path_callback(), DTTR_PCDOGS_F_File_Open, DTTR_PCDOGS_F_Title_CleanupScreenResources, DTTR_PCDOGS_PATCH_SPEC_AOB_REL32_JMP, dttr_sidecar_install_pcdogs_patch_group(), game_targets, and NULL.
Referenced by install_required_sidecar_hooks().
| BOOL dttr_hook_cleanup_title_resources_callback | ( | ) |
Definition at line 7 of file hook_cleanup_title_resources.c.
References BOOL, DTTR_PCDOGS_D_PKG_ResourceTitleBonusReplayResource, DTTR_PCDOGS_D_PKG_ResourceTitleMaterialBase, DTTR_PCDOGS_D_PKG_ResourceTitlePackage, DTTR_PCDOGS_D_Title_ResourceHandle0, DTTR_PCDOGS_D_Title_ResourceHandle1, FALSE, and NULL.
Referenced by dttr_game_hooks_init().
| uint32_t dttr_hook_resolve_pcdogs_path_callback | ( | ) |
Definition at line 9 of file hook_resolve_pcdogs_path.c.
References DTTR_LOG_ERROR, DTTR_PCDOGS_D_AUDIO_OPEN_STREAM_PKG_BASE_PATH_COUNT, DTTR_PCDOGS_D_Audio_OpenStream_PKGBasePath, dttr_sidecar_runtime_context(), and DWORD.
Referenced by dttr_game_hooks_init().