mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
show-dll-error-dialog
This commit is contained in:
parent
265236f6de
commit
e9b573cb19
@ -50,7 +50,6 @@ load_dso(const DSearchPath &path, const Filename &filename) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
string os_specific = abspath.to_os_specific();
|
string os_specific = abspath.to_os_specific();
|
||||||
SetErrorMode(0);
|
|
||||||
|
|
||||||
// Try using LoadLibraryEx, if possible.
|
// Try using LoadLibraryEx, if possible.
|
||||||
typedef HMODULE (WINAPI *tLoadLibraryEx)(LPCTSTR, HANDLE, DWORD);
|
typedef HMODULE (WINAPI *tLoadLibraryEx)(LPCTSTR, HANDLE, DWORD);
|
||||||
|
@ -390,6 +390,17 @@ reload_implicit_pages() {
|
|||||||
"or \"mac\"."));
|
"or \"mac\"."));
|
||||||
PandaFileStreamBuf::_newline_mode = newline_mode;
|
PandaFileStreamBuf::_newline_mode = newline_mode;
|
||||||
#endif // USE_PANDAFILESTREAM
|
#endif // USE_PANDAFILESTREAM
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
// We don't necessarily want an error dialog when we fail to load a
|
||||||
|
// .dll file. But sometimes it is useful for debugging.
|
||||||
|
if (ConfigVariableBool("show-dll-error-dialog", false)) {
|
||||||
|
SetErrorMode(0);
|
||||||
|
} else {
|
||||||
|
SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user