mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
Log error code on dylib failure in Windows.
This commit is contained in:
parent
3c2591f71f
commit
37c29144d8
@ -240,7 +240,10 @@ void uninit_libsnes_sym(void)
|
|||||||
dylib_t dylib_load(const char *path)
|
dylib_t dylib_load(const char *path)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return LoadLibrary(path);
|
dylib_t lib = LoadLibrary(path);
|
||||||
|
if (!lib)
|
||||||
|
SSNES_ERR("Failed to load library, error code: 0x%x\n", (unsigned)GetLastError());
|
||||||
|
return lib;
|
||||||
#else
|
#else
|
||||||
return dlopen(path, RTLD_LAZY);
|
return dlopen(path, RTLD_LAZY);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user