|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include <dttr_config.h>#include <dttr_crashdump.h>#include <dttr_errors.h>#include <dttr_imgui.h>#include <dttr_loader.h>#include <dttr_loader_ui.h>#include <dttr_log.h>#include <dttr_path.h>#include <sds.h>#include <stdio.h>#include <string.h>#include <windows.h>#include <gen/packed_sdb.h>Go to the source code of this file.
Enumerations | |
| enum | { PATH_ENV_BUFFER_SIZE = 1u << 15 } |
Functions | |
| static bool | set_env (const char *name, const char *value) |
| static bool | resolve_modules_dir (char *out, size_t out_size) |
| static bool | resolve_loader_dir (char *out, size_t out_size) |
| static void | resolve_config_path (int argc, char *argv[]) |
| static FILE * | open_log_file (int log_level) |
| static bool | terminate_child (PROCESS_INFORMATION *child_info, DWORD exit_code) |
| static void | close_child_handles (PROCESS_INFORMATION *child_info) |
| static void | prepend_modules_to_path () |
| int | dttr_launcher_main (int argc, char *argv[]) |
Variables | |
| static const char *const | MODULES_DIR_NAME = "modules" |
| static char | config_path_buf [MAX_PATH] |
| const char * | dttr_config_path = DTTR_CONFIG_FILENAME |
| anonymous enum |
| Enumerator | |
|---|---|
| PATH_ENV_BUFFER_SIZE | |
Definition at line 18 of file launcher.c.
|
static |
Definition at line 110 of file launcher.c.
Referenced by dttr_launcher_main().
| int dttr_launcher_main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 158 of file launcher.c.
References DTTR_LoaderIsoContext::cache_root, cleanup(), close_child_handles(), DTTR_Compat_CreateProcess(), dttr_config, DTTR_Config_LastError(), DTTR_Config_Load(), dttr_config_path, DTTR_CrashDump_Init(), DTTR_ERROR, DTTR_Errors_SetMessageHandler(), DTTR_FATAL, DTTR_ImGuiDialog_Shutdown(), DTTR_Loader_InjectSidecar(), DTTR_Loader_ResolveEXEPath(), DTTR_Loader_WatchdogAttach(), DTTR_Loader_WatchdogDetach(), DTTR_Loader_WatchdogWait(), DTTR_LoaderUI_ShowError(), DTTR_LOG_ERROR, DTTR_LOG_INFO, DTTR_Log_SetLevel(), DTTR_REPORT_SUFFIX, DWORD, DTTR_LoaderIsoContext::game_root, DTTR_LoaderIsoContext::is_iso, open_log_file(), prepend_modules_to_path(), resolve_config_path(), resolve_loader_dir(), set_env(), and terminate_child().
|
static |
Definition at line 68 of file launcher.c.
References dttr_config, DTTR_Log_AddFP(), DTTR_Path_ResolveRelativeTo(), NULL, and resolve_loader_dir().
Referenced by dttr_launcher_main().
|
static |
Definition at line 120 of file launcher.c.
References DTTR_LOG_DEBUG, DTTR_LOG_ERROR, DWORD, PATH_ENV_BUFFER_SIZE, resolve_modules_dir(), and set_env().
Referenced by dttr_launcher_main().
|
static |
Definition at line 46 of file launcher.c.
References config_path_buf, DTTR_CONFIG_FILENAME, dttr_config_path, DTTR_FATAL, DTTR_Path_ModuleSibling(), DWORD, and NULL.
Referenced by dttr_launcher_main().
|
static |
Definition at line 39 of file launcher.c.
References DTTR_Path_CopySds(), DTTR_Path_ModuleDir(), and NULL.
Referenced by dttr_launcher_main(), and open_log_file().
|
static |
Definition at line 32 of file launcher.c.
References DTTR_Path_CopySds(), DTTR_Path_ModuleSibling(), MODULES_DIR_NAME, and NULL.
Referenced by prepend_modules_to_path().
|
static |
Definition at line 23 of file launcher.c.
References DTTR_LOG_ERROR.
Referenced by dttr_launcher_main(), and prepend_modules_to_path().
|
static |
Definition at line 89 of file launcher.c.
References DTTR_LOG_ERROR, and DWORD.
Referenced by dttr_launcher_main().
|
static |
Definition at line 20 of file launcher.c.
Referenced by resolve_config_path().
| const char* dttr_config_path = DTTR_CONFIG_FILENAME |
Definition at line 21 of file launcher.c.
Referenced by dttr_launcher_main(), resolve_config_path(), and save_selected_path().
|
static |
Definition at line 16 of file launcher.c.
Referenced by resolve_modules_dir().