102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
hooks_private.h
Go to the documentation of this file.
1#ifndef DTTR_GAME_HOOKS_PRIVATE_H
2#define DTTR_GAME_HOOKS_PRIVATE_H
3
4#include <stdint.h>
5
6#include <dttr_mods.h>
7#include <dttr_pcdogs.h>
8#include <windows.h>
9
10// Replacement file-open callback that supports redirected saves and cached game data.
12 const char *path,
13 const char *mode
14);
15// Replacement bootstrap callback that points the game at the resolved PCDogs path.
17// Replacement title-screen cleanup callback that clears stale resource globals.
19
20// Installs file, path, and title-resource cleanup hooks as one game patch group.
22// Releases the game patch group and saved callback pointers.
24
25#endif // DTTR_GAME_HOOKS_PRIVATE_H
DTTR_Graphics_COM_Direct3DDevice7 DWORD block DTTR_Graphics_COM_Direct3DDevice7 DWORD block DTTR_Graphics_COM_Direct3DDevice7 void void void void DWORD f BOOL
void void * ctx
BOOL dttr_hook_cleanup_title_resources_callback()
void dttr_game_hooks_cleanup(const DTTR_Mods_Context *ctx)
Definition hooks.c:41
uint32_t dttr_hook_resolve_pcdogs_path_callback()
bool dttr_game_hooks_init(const DTTR_Mods_Context *ctx)
Definition hooks.c:10
DTTR_PCDOGS_T_File_Handle * dttr_crt_hook_open_file_callback(const char *path, const char *mode)
CRT-compatible file handle layout, used by package and asset loading streams.