|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include <log.h>#include <stdbool.h>Go to the source code of this file.
Macros | |
| #define | DTTR_LOG_AT(level, ...) |
| #define | DTTR_LOG_TRACE(...) |
| #define | DTTR_LOG_DEBUG(...) |
| #define | DTTR_LOG_INFO(...) |
| #define | DTTR_LOG_WARN(...) |
| #define | DTTR_LOG_ERROR(...) |
| #define | DTTR_LOG_FATAL(...) |
Functions | |
| bool | DTTR_Log_IsEnabled (int level) |
| void | DTTR_Log (int level, const char *file, int line, const char *fmt,...) |
| void | DTTR_Log_Unchecked (int level, const char *file, int line, const char *fmt,...) |
| void | DTTR_Log_SetLevel (int level) |
| int | DTTR_Log_AddFP (FILE *fp, int level) |
| #define DTTR_LOG_AT | ( | level, | |
| ... ) |
Definition at line 20 of file dttr_log.h.
| #define DTTR_LOG_DEBUG | ( | ... | ) |
Definition at line 28 of file dttr_log.h.
Referenced by build_sidecar_shellcode(), decode_prologue(), detach_watchdog(), DTTR_Compat_CreateProcess(), DTTR_Core_HookAttachFunction(), DTTR_Core_HookDetachChecked(), DTTR_CrashDump_Init(), dttr_graphics_com_create_directdraw7(), dttr_hook_directdraw_create_ex_callback(), dttr_hook_directdraw_enumerate_ex_a_callback(), dttr_inputs_late_init(), DTTR_Loader_InjectSidecar(), DTTR_Loader_WatchdogAttach(), DTTR_Loader_WatchdogWait(), log_prologue_bytes(), prepend_modules_to_path(), queue_video_frame(), read_entry_point_rva_from_remote_image(), read_remote_image_base_from_thread_context(), redirect_path(), should_disable_watchdog(), trampoline_relocate(), try_fix_permissions(), try_open_read_path(), write_remote_payload(), and write_remote_shim_data().
| #define DTTR_LOG_ERROR | ( | ... | ) |
Definition at line 31 of file dttr_log.h.
Referenced by apply_rate(), audio_init_system(), begin_frame(), build_sidecar_shellcode(), compile_shader(), compute_exe_hash(), copy_memory_checked(), create_device(), create_fbo(), create_graphics_pipelines(), create_msaa_fbo(), create_program(), decode_prologue(), decode_until_video_frame(), decoder_init(), dttr_audio_init(), DTTR_Config_Load(), DTTR_Config_Save(), DTTR_Core_HookAttachFunction(), DTTR_Core_HookAttachPointer(), DTTR_Core_HookCleanupAll(), DTTR_Core_HookPatchBytes(), DTTR_CrashDump_Init(), DTTR_CrashDump_LogAndTraceReport(), DTTR_CrashDump_Write(), dttr_crt_hook_open_file_callback(), dttr_graphics_hooks_init(), dttr_graphics_init(), dttr_graphics_opengl_init(), dttr_graphics_sdl3gpu_create_pipelines(), dttr_graphics_sdl3gpu_create_resources(), dttr_graphics_sdl3gpu_init(), dttr_graphics_sdl3gpu_resize_render_textures(), dttr_hook_directdraw_create_ex_callback(), dttr_hook_resolve_pcdogs_path_callback(), DTTR_Hook_WinMainCallback(), dttr_inputs_handle_device_event(), dttr_inputs_hook_dinput_poll_callback(), dttr_inputs_hooks_init(), dttr_inputs_init(), dttr_launcher_main(), dttr_movies_init(), dttr_movies_start(), dttr_mss_ail_open_stream(), dttr_mss_ail_set_sample_file(), dttr_mss_ail_start_sample(), dttr_mss_ail_waveOutClose(), dttr_mss_core_ensure_mix_initialized(), dttr_mss_core_ensure_mixer(), dttr_mss_sdl_release_hooks(), errors_show(), extract_iso_file(), extract_iso_game_cache(), file_open_with_mode(), function_link_create(), function_link_detach(), handle_audio_device_added(), handle_audio_device_removed(), hook_create(), hook_detach_index(), initialize_shellcode_payload(), load_sample_audio_from_memory(), load_sdl(), log_win32_failure(), open_codec(), open_movie(), prepare_audio(), prepend_modules_to_path(), queue_audio_frame(), queue_video_frame(), read_entry_point_rva_from_remote_image(), read_remote_bytes(), receive_video_frame(), render_sample_audio(), require_pcdogs_call(), resize_fbo(), resolve_iso(), resolve_iso_direct(), resolve_sidecar_dll_path(), run_browse_dialog(), save_selected_path(), send_packet(), set_dump_dir(), set_env(), set_joystick_available(), store_pointer(), surface_texture_create_or_retain(), terminate_child(), trampoline_relocate(), try_configured_path(), try_create_device_for_driver(), try_fix_permissions(), try_open_configured_gamepad(), write_bytes(), write_function_jump(), and write_remote_payload().
| #define DTTR_LOG_FATAL | ( | ... | ) |
Definition at line 32 of file dttr_log.h.
| #define DTTR_LOG_INFO | ( | ... | ) |
Definition at line 29 of file dttr_log.h.
Referenced by DTTR_CrashDump_Write(), dttr_graphics_opengl_init(), dttr_graphics_sdl3gpu_init(), DTTR_Hook_WinMainCallback(), dttr_inputs_handle_device_event(), dttr_launcher_main(), DTTR_Loader_WatchdogWait(), dttr_mods_init(), dttr_movies_cleanup(), dttr_movies_start(), dttr_movies_stop(), dttr_mss_core_ensure_mixer(), handle_audio_device_added(), load_mod(), log_mod_deleted(), log_mod_info(), prompt_browse_for_path(), reload_mod(), resize_fbo(), resolve_iso_direct(), resolve_mods_dir(), scan_mod_file(), scan_mods(), try_configured_path(), try_disc_candidate(), try_open_configured_gamepad(), and unload_mod().
| #define DTTR_LOG_TRACE | ( | ... | ) |
Definition at line 27 of file dttr_log.h.
Referenced by dttr_mss_ail_allocate_sample_handle(), dttr_mss_ail_close_stream(), dttr_mss_ail_init_sample(), dttr_mss_ail_open_stream(), dttr_mss_ail_release_sample_handle(), dttr_mss_ail_set_sample_file(), dttr_mss_ail_set_sample_playback_rate(), dttr_mss_ail_start_sample(), dttr_mss_ail_start_stream(), dttr_mss_ail_stop_sample(), dttr_mss_ail_waveOutClose(), and dttr_mss_ail_waveOutOpen().
| #define DTTR_LOG_WARN | ( | ... | ) |
Definition at line 30 of file dttr_log.h.
Referenced by attempt_play_startup_movies(), begin_draw_pass_if_needed(), begin_frame(), check_overlap(), d3d_device7_record_draw(), d3d_device7_set_transform_state(), decode_prologue(), drain_eof(), DTTR_Config_Load(), DTTR_Core_HookAttachFunction(), dttr_graphics_ensure_staged_texture(), dttr_graphics_init(), dttr_graphics_opengl_init(), DTTR_Hook_WinMainCallback(), DTTR_Loader_WatchdogAttach(), dttr_movies_tick(), flush_patched_range(), init_mod(), load_mod(), prepare_mod(), receive_audio_frames(), refresh_mod_context(), refresh_render_resolution(), resize_fbo(), select_msaa_sample_count(), send_packet(), toggle_fullscreen(), try_create_device_for_driver(), and try_open_configured_gamepad().
| void DTTR_Log | ( | int | level, |
| const char * | file, | ||
| int | line, | ||
| const char * | fmt, | ||
| ... ) |
Definition at line 125 of file log.c.
References DTTR_Log_IsEnabled(), dttr_vlog_unchecked(), and fmt.
| int DTTR_Log_AddFP | ( | FILE * | fp, |
| int | level ) |
Definition at line 161 of file log.c.
References add_log_callback(), and file_callback().
Referenced by DTTR_Hook_WinMainCallback(), and open_log_file().
| bool DTTR_Log_IsEnabled | ( | int | level | ) |
Definition at line 79 of file log.c.
References callback_count, callbacks, and current_log_level.
Referenced by DTTR_Log().
| void DTTR_Log_SetLevel | ( | int | level | ) |
Definition at line 143 of file log.c.
References current_log_level.
Referenced by DTTR_Hook_WinMainCallback(), and dttr_launcher_main().
| void DTTR_Log_Unchecked | ( | int | level, |
| const char * | file, | ||
| int | line, | ||
| const char * | fmt, | ||
| ... ) |
Definition at line 136 of file log.c.
References dttr_vlog_unchecked(), and fmt.