Skip to content

Commit

Permalink
Add lzma library only for OSX build
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmolot committed Jul 3, 2023
1 parent ed71f58 commit 235f41e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ if(NOT ${CLIENT_DLL})
sourcesdk::common
sourcesdk::tier0
sourcesdk::tier1
sourcesdk::lzma

efsw
moonengine
)

if(APPLE)
target_link_libraries(moonloader PRIVATE sourcesdk::lzma)
endif()
else()
target_link_libraries(moonloader PRIVATE
gmod::common
Expand Down
3 changes: 1 addition & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,9 @@ GMOD_MODULE_CLOSE() {
g_IncludedFiles.erase(ILUA);

g_Filesystem->RemoveSearchPath("garrysmod/" CACHE_PATH_LUA, ILUA->GetPathID());
if (ILUA->IsServer())
if (ILUA->IsServer()) {
g_Filesystem->RemoveSearchPath("garrysmod/" CACHE_PATH_LUA, "lcl");

if (ILUA->IsServer()) {
AutoRefresh::Deinitialize();
g_EngineServer = nullptr;
}
Expand Down

0 comments on commit 235f41e

Please sign in to comment.