@@ -19,11 +19,11 @@ cleanup_function_fn cleanup_function = nullptr;
1919// Invoked by Garry's Mod on module load
2020GMOD_MODULE_OPEN ()
2121{
22- const std::filesystem::path bin_folder (" garrysmod/lua/bin" );
22+ const std::filesystem::path lua_bin_folder (" garrysmod/lua/bin" );
2323
2424 // On Linux, modify SIGSEGV handling
2525#ifdef __gnu_linux__
26- void *linux_helper_handle = dlopen ((bin_folder / " liblinuxhelper.so" ).c_str (), RTLD_LAZY);
26+ void *linux_helper_handle = dlopen ((lua_bin_folder / " liblinuxhelper.so" ).c_str (), RTLD_LAZY);
2727 void (*pointer_to_install_sigsegv)(void );
2828 pointer_to_install_sigsegv = (void (*)())dlsym (linux_helper_handle, " install_sigsegv_handler" );
2929 pointer_to_install_sigsegv ();
@@ -40,13 +40,13 @@ GMOD_MODULE_OPEN()
4040 const char InitNetRuntime_fn_name[] = " InitNetRuntime" ;
4141
4242#ifdef WIN32
43- HMODULE dotnethelper_handle = LoadLibraryW ((bin_folder / " dotnethelper.dll" ).make_preferred ().c_str ());
43+ HMODULE dotnethelper_handle = LoadLibraryW ((lua_bin_folder / " dotnethelper.dll" ).make_preferred ().c_str ());
4444 if (dotnethelper_handle != nullptr )
4545 InitNetRuntime = reinterpret_cast <InitNetRuntime_fn>(GetProcAddress (dotnethelper_handle, InitNetRuntime_fn_name));
4646#elif __APPLE__
47- void * dotnethelper_handle = dlopen ((bin_folder / " libdotnethelper.dylib" ).c_str (), RTLD_LAZY);
47+ void * dotnethelper_handle = dlopen ((lua_bin_folder / " libdotnethelper.dylib" ).c_str (), RTLD_LAZY);
4848#elif __gnu_linux__
49- void * dotnethelper_handle = dlopen ((bin_folder / " libdotnethelper.so" ).c_str (), RTLD_LAZY);
49+ void * dotnethelper_handle = dlopen ((lua_bin_folder / " libdotnethelper.so" ).c_str (), RTLD_LAZY);
5050#endif
5151
5252#ifndef WIN32
0 commit comments