Devilution
Diablo devolved - magic behind the 1996 computer game
appfat.h
Go to the documentation of this file.
1 
6 #ifndef __APPFAT_H__
7 #define __APPFAT_H__
8 
9 extern char sz_error_buf[256];
10 extern BOOL terminating;
11 extern int cleanup_thread_id;
12 
13 void TriggerBreak();
14 char *GetErrorStr(DWORD error_code);
15 #define TraceLastError SDL_GetError
16 void app_fatal(const char *pszFmt, ...);
17 void MsgBox(const char *pszFmt, va_list va);
18 void FreeDlg();
19 void DrawDlg(char *pszFmt, ...);
20 #ifdef _DEBUG
21 void assert_fail(int nLineNo, const char *pszFile, const char *pszFail);
22 #endif
23 void DDErrMsg(DWORD error_code, int log_line_nr, char *log_file_path);
24 void DSErrMsg(DWORD error_code, int log_line_nr, char *log_file_path);
25 void center_window(HWND hDlg);
26 void ErrDlg(const char *title, const char *error, char *log_file_path, int log_line_nr);
27 void TextDlg(HWND hDlg, char *text);
28 void FileErrDlg(const char *error);
29 void DiskFreeDlg(char *error);
30 void InsertCDDlg(const char *fileName);
31 void DirErrorDlg(char *error);
32 
33 #endif /* __APPFAT_H__ */
DiskFreeDlg
void DiskFreeDlg(char *error)
center_window
void center_window(HWND hDlg)
sz_error_buf
char sz_error_buf[256]
Definition: appfat.cpp:12
ErrDlg
void ErrDlg(const char *title, const char *error, char *log_file_path, int log_line_nr)
Definition: appfat.cpp:77
DirErrorDlg
void DirErrorDlg(char *error)
Definition: appfat.cpp:128
terminating
BOOL terminating
Set to true when a fatal error is encountered and the application should shut down.
Definition: appfat.cpp:14
FreeDlg
void FreeDlg()
Definition: appfat.cpp:42
TriggerBreak
void TriggerBreak()
DDErrMsg
void DDErrMsg(DWORD error_code, int log_line_nr, char *log_file_path)
TextDlg
void TextDlg(HWND hDlg, char *text)
GetErrorStr
char * GetErrorStr(DWORD error_code)
app_fatal
void app_fatal(const char *pszFmt,...)
Definition: appfat.cpp:18
DrawDlg
void DrawDlg(char *pszFmt,...)
Definition: appfat.cpp:58
MsgBox
void MsgBox(const char *pszFmt, va_list va)
Definition: appfat.cpp:33
InsertCDDlg
void InsertCDDlg(const char *fileName)
Definition: appfat.cpp:113
FileErrDlg
void FileErrDlg(const char *error)
Definition: appfat.cpp:89
DSErrMsg
void DSErrMsg(DWORD error_code, int log_line_nr, char *log_file_path)
cleanup_thread_id
int cleanup_thread_id
Thread id of the last callee to FreeDlg().
Definition: appfat.cpp:16