Skip to content

Commit

Permalink
xrCore: append .so when loading modules
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross authored and eagleivg committed Oct 3, 2018
1 parent a22e204 commit 1798bc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xrCore/ModuleLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ void* ModuleHandle::Open(pcstr moduleName)
#ifdef WINDOWS
handle = LoadLibraryA(moduleName);
#elif defined(LINUX)
handle = dlopen(moduleName, RTLD_LAZY);
char buf[1024];
snprintf(buf, sizeof(buf), "%s.so", moduleName);

handle = dlopen(buf, RTLD_LAZY);
#endif
if (handle == nullptr)
{
Expand Down

0 comments on commit 1798bc6

Please sign in to comment.