102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
sidecar_private.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <windows.h>
#include <dttr_mods.h>
#include <dttr_pcdogs.h>
#include <dttr_runtime.h>
#include <sds.h>
#include <SDL3/SDL.h>

Go to the source code of this file.

Enumerations

enum  { DTTR_EXE_HASH_LENGTH = 16 }

Functions

 DTTR_STORAGE_SLOT (DTTR_PCDOGS_F_Title_CleanupScreenResources_proto, dttr_hook_cleanup_title_resources_original) void dttr_game_data_init()
void dttr_game_data_cleanup ()
bool dttr_game_data_resolve_existing_read_path (const char *path, char *out_path, size_t out_path_size)
bool dttr_game_data_resolve_read_path (const char *path, char *out_path, size_t out_path_size)
const char * dttr_game_data_find_data_segment (const char *path)
sds dttr_game_data_resolve_media_path (const char *relative)
void dttr_pcdogs_crash_symbols_register (const DTTR_Core_Context *runtime)
void dttr_pcdogs_crash_symbols_clear ()
const DTTR_Mods_Contextdttr_sidecar_context ()
const DTTR_Core_Contextdttr_sidecar_runtime_context ()
void dttr_sidecar_handle_sdl_event (const SDL_Event *event)
void dttr_sidecar_poll_sdl_events ()
static const char * dttr_sidecar_result_detail (DTTR_Result result)
static bool dttr_sidecar_install_pcdogs_patch_group (const DTTR_Mods_Context *ctx, const char *label, const DTTR_PCDOGS_T_Patch_Spec *patches, size_t patch_count, DTTR_Core_PatchGroup **group)

Variables

HINSTANCE dttr_sidecar_module
char dttr_loader_dir [MAX_PATH]
char dttr_exe_hash [DTTR_EXE_HASH_LENGTH+1]

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DTTR_EXE_HASH_LENGTH 

Definition at line 17 of file sidecar_private.h.

Function Documentation

◆ dttr_game_data_cleanup()

void dttr_game_data_cleanup ( )

Definition at line 23 of file game_data.c.

References source.

Referenced by cleanup_runtime(), dttr_game_data_init(), and DTTR_STORAGE_SLOT().

◆ dttr_game_data_find_data_segment()

const char * dttr_game_data_find_data_segment ( const char * path)

◆ dttr_game_data_resolve_existing_read_path()

◆ dttr_game_data_resolve_media_path()

◆ dttr_game_data_resolve_read_path()

bool dttr_game_data_resolve_read_path ( const char * path,
char * out_path,
size_t out_path_size )

◆ dttr_pcdogs_crash_symbols_clear()

void dttr_pcdogs_crash_symbols_clear ( )

◆ dttr_pcdogs_crash_symbols_register()

◆ dttr_sidecar_context()

const DTTR_Mods_Context * dttr_sidecar_context ( )

Definition at line 152 of file entrypoint.c.

References sidecar_ctx.

Referenced by DTTR_Hook_WinMainCallback(), DTTR_STORAGE_SLOT(), and init_mod().

◆ dttr_sidecar_handle_sdl_event()

◆ dttr_sidecar_install_pcdogs_patch_group()

◆ dttr_sidecar_poll_sdl_events()

◆ dttr_sidecar_result_detail()

◆ dttr_sidecar_runtime_context()

◆ DTTR_STORAGE_SLOT()

Variable Documentation

◆ dttr_exe_hash

char dttr_exe_hash[DTTR_EXE_HASH_LENGTH+1]
extern

◆ dttr_loader_dir

char dttr_loader_dir[MAX_PATH]
extern

◆ dttr_sidecar_module

HINSTANCE dttr_sidecar_module
extern

Definition at line 35 of file entrypoint.c.

Referenced by DllMain(), DTTR_Hook_WinMainCallback(), and get_loader_dir().