Skip to content
Snippets Groups Projects
Commit 1ce3b6bc authored by D-AIRY's avatar D-AIRY
Browse files

Added custom error info

parent 5e409439
Branches
Tags
No related merge requests found
......@@ -35,7 +35,12 @@ void InitDevice(SXWINDOW hWnd, int iWidth, int iHeight, bool isWindowed)
m_hLibGXAPI = LoadLibrary(szModuleName);
if(!m_hLibGXAPI)
{
LibReport(REPORT_MSG_LEVEL_FATAL, "%s - unable to load GX: %s; Error: %lu\n", GEN_MSG_LOCATION, szModuleName, GetLastError());
const char *szMsg = "";
if(GetLastError() == ERROR_MOD_NOT_FOUND && !fstrcmp(szModuleName, "gxgapidx11.dll"))
{
szMsg = "Please check you have d3dx11_43.dll and D3DCompiler_43.dll in your system!\n";
}
LibReport(REPORT_MSG_LEVEL_FATAL, "%s - unable to load GX: %s; Error: %lu\n%s", GEN_MSG_LOCATION, szModuleName, GetLastError(), szMsg);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment