Skip to content

Commit 1798bc6

Browse files
a1batrosseagleivg
authored andcommitted
xrCore: append .so when loading modules
1 parent a22e204 commit 1798bc6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/xrCore/ModuleLookup.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ void* ModuleHandle::Open(pcstr moduleName)
2929
#ifdef WINDOWS
3030
handle = LoadLibraryA(moduleName);
3131
#elif defined(LINUX)
32-
handle = dlopen(moduleName, RTLD_LAZY);
32+
char buf[1024];
33+
snprintf(buf, sizeof(buf), "%s.so", moduleName);
34+
35+
handle = dlopen(buf, RTLD_LAZY);
3336
#endif
3437
if (handle == nullptr)
3538
{

0 commit comments

Comments
 (0)