From 1ce3b6bcba9f30d9643068b0a388372a180d97bb Mon Sep 17 00:00:00 2001 From: D-AIRY <admin@ds-servers.com> Date: Sun, 28 Jun 2020 09:11:58 +0300 Subject: [PATCH] Added custom error info --- source/gcore/gcore_utils.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/gcore/gcore_utils.cpp b/source/gcore/gcore_utils.cpp index 8b5a43b14..f5f31ca14 100644 --- a/source/gcore/gcore_utils.cpp +++ b/source/gcore/gcore_utils.cpp @@ -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; } -- GitLab