Skip to content

Commit

Permalink
fix linux compile
Browse files Browse the repository at this point in the history
  • Loading branch information
meetric1 committed Nov 17, 2024
1 parent 3678441 commit c015ba6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions binary/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,14 @@ LUA_FUNCTION(GWATER2_QuickHackRemoveMeASAP) {
GMOD_MODULE_OPEN() {
Msg("[GWater2]: Module opened\n");
Msg("[GWater2]: Loading lua_shared interface\n");

#ifdef _LINUX
if (!Sys_LoadInterface("lua_shared.so", GMOD_LUASHARED_INTERFACE, NULL, (void**)&GLOBAL_LUA))
LUA->ThrowError("[GWater2 Internal Error]: LuaShared failed to load!");
#else
if (!Sys_LoadInterface("lua_shared.dll", GMOD_LUASHARED_INTERFACE, NULL, (void**)&GLOBAL_LUA))
LUA->ThrowError("[GWater2 Internal Error]: LuaShared failed to load!");
#endif

Msg("[GWater2]: Loading FleX instance\n");
NvFlexInitDesc desc = NvFlexInitDesc();
Expand Down

0 comments on commit c015ba6

Please sign in to comment.