Skip to content

Commit

Permalink
[MP] Install OpenJK modules to base for win32.
Browse files Browse the repository at this point in the history
Since com_unpackLibraries defaults to 0 the game is not going to unpack the default libraries from the assets anymore, thus the OpenJK ones should now be used as default.
  • Loading branch information
Daggolin committed Nov 28, 2023
1 parent 718c31c commit 4fabac9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
14 changes: 6 additions & 8 deletions codemp/cgame/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,12 @@ elseif(WIN32)
RUNTIME
DESTINATION "${JKAInstallDir}/OpenJK"
COMPONENT ${JKAMPCoreComponent})
if (WIN64)
# Don't do this on 32-bit Windows to avoid overwriting
# vanilla JKA's DLLs
install(TARGETS ${MPCGame}
RUNTIME
DESTINATION "${JKAInstallDir}/base"
COMPONENT ${JKAMPCoreComponent})
endif()

# Use OpenJK modules as default
install(TARGETS ${MPCGame}
RUNTIME
DESTINATION "${JKAInstallDir}/base"
COMPONENT ${JKAMPCoreComponent})
else()
install(TARGETS ${MPCGame}
LIBRARY
Expand Down
14 changes: 6 additions & 8 deletions codemp/game/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,12 @@ elseif(WIN32)
RUNTIME
DESTINATION "${JKAInstallDir}/OpenJK"
COMPONENT ${JKAMPCoreComponent})
if (WIN64)
# Don't do this on 32-bit Windows to avoid overwriting
# vanilla JKA's DLLs
install(TARGETS ${MPGame}
RUNTIME
DESTINATION "${JKAInstallDir}/base"
COMPONENT ${JKAMPCoreComponent})
endif()

# Use OpenJK modules as default
install(TARGETS ${MPGame}
RUNTIME
DESTINATION "${JKAInstallDir}/base"
COMPONENT ${JKAMPCoreComponent})
else()
install(TARGETS ${MPGame}
LIBRARY
Expand Down
14 changes: 6 additions & 8 deletions codemp/ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,12 @@ elseif(WIN32)
RUNTIME
DESTINATION "${JKAInstallDir}/OpenJK"
COMPONENT ${JKAMPCoreComponent})
if (WIN64)
# Don't do this on 32-bit Windows to avoid overwriting
# vanilla JKA's DLLs
install(TARGETS ${MPUI}
RUNTIME
DESTINATION "${JKAInstallDir}/base"
COMPONENT ${JKAMPCoreComponent})
endif()

# Use OpenJK modules as default
install(TARGETS ${MPUI}
RUNTIME
DESTINATION "${JKAInstallDir}/base"
COMPONENT ${JKAMPCoreComponent})
else()
install(TARGETS ${MPUI}
LIBRARY
Expand Down

0 comments on commit 4fabac9

Please sign in to comment.