📄 error_handlers.c
字号:
#include <string.h>
#include "globals.h"
#include "error_handlers.h"
void fatal_error(char *msg)
{
char temp_buf[512];
if (datafile != NULL)
unload_datafile(datafile);
sprintf(temp_buf, "\nERROR: %s", msg);
strcat(temp_buf, "\n\nPlease contact ScanTool.net via our website at http://www.ScanTool.net/support");
strcat(temp_buf, "\nInclude the following information:");
strcat(temp_buf, "\n\t- Exact error message");
strcat(temp_buf, "\n\t- CPU type/speed, i.e. \"Pentium 100Mhz\"");
strcat(temp_buf, "\n\t- OS, i.e. \"Windows 95\"");
strcat(temp_buf, "\n\t- Total amount of RAM installed, i.e. \"4Mb\"\n\n");
allegro_message(temp_buf);
exit(EXIT_FAILURE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -