102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
errors.c
Go to the documentation of this file.
1#include <dttr_errors.h>
2#include <dttr_sdl.h>
3
5
9
10void DTTR_Errors_ShowMessage(const char *title, const char *message) {
11 if (!message_handler) {
12 DTTR_SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title, message, NULL);
13 return;
14 }
15
16 message_handler(title, message);
17}
DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void NULL
void(* DTTR_ErrorMessageHandler)(const char *title, const char *message)
Definition dttr_errors.h:10
bool DTTR_SDL_ShowSimpleMessageBox(SDL_MessageBoxFlags flags, const char *title, const char *message, SDL_Window *window)
Definition sdl.c:121
void DTTR_Errors_SetMessageHandler(DTTR_ErrorMessageHandler handler)
Definition errors.c:6
static DTTR_ErrorMessageHandler message_handler
Definition errors.c:4
void DTTR_Errors_ShowMessage(const char *title, const char *message)
Definition errors.c:10