Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine
Manage
Activity
Members
Labels
Plan
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
engine
Commits
1ce3b6bc
Commit
1ce3b6bc
authored
4 years ago
by
D-AIRY
Browse files
Options
Downloads
Patches
Plain Diff
Added custom error info
parent
5e409439
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/gcore/gcore_utils.cpp
+6
-1
6 additions, 1 deletion
source/gcore/gcore_utils.cpp
with
6 additions
and
1 deletion
source/gcore/gcore_utils.cpp
+
6
−
1
View file @
1ce3b6bc
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment