diff options
author | Rémy Raes <contact@remyraes.com> | 2023-11-03 16:32:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 16:32:41 +0100 |
commit | 13f2facdb6b5a556f01e0d04aaa6bda5d2b29417 (patch) | |
tree | b7375762976373291845c96ba539ece236b17033 /NorthstarDLL/CMakeLists.txt | |
parent | 6e32a584804158daec2f57cfe3fa058f1ce3d0a7 (diff) | |
download | NorthstarLauncher-13f2facdb6b5a556f01e0d04aaa6bda5d2b29417.tar.gz NorthstarLauncher-13f2facdb6b5a556f01e0d04aaa6bda5d2b29417.zip |
Inital native code for verified mod auto-downloading (#545)
Allows client to download a mod archive from the Thunderstore API, and extract included mods in the remote mods folder of the current game profile.
Not all mods can be automatically downloaded, as it would cause some security issues, and Thunderstore mod name cannot be deduced from actual mod name: to be eligible to auto-downloading, a mod must appear in the list of verified mods.
Said list and complete mod verification procedure are described here: https://github.com/R2Northstar/VerifiedMods
Exposes two commands to test the feature:
- `fetch_verified_mods` retrieves verified mods list from the GitHub organization, and stores it locally;
- `download_mod` does the actual mod downloading/extraction job.
Diffstat (limited to 'NorthstarDLL/CMakeLists.txt')
-rw-r--r-- | NorthstarDLL/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDLL/CMakeLists.txt b/NorthstarDLL/CMakeLists.txt index 288d39b1..54ed1967 100644 --- a/NorthstarDLL/CMakeLists.txt +++ b/NorthstarDLL/CMakeLists.txt @@ -2,6 +2,7 @@ find_package(minhook REQUIRED) find_package(libcurl REQUIRED) +find_package(minizip REQUIRED) add_library(NorthstarDLL SHARED "resources.rc" @@ -73,6 +74,8 @@ add_library(NorthstarDLL SHARED "logging/sourceconsole.h" "masterserver/masterserver.cpp" "masterserver/masterserver.h" + "mods/autodownload/moddownloader.h" + "mods/autodownload/moddownloader.cpp" "mods/compiled/kb_act.cpp" "mods/compiled/modkeyvalues.cpp" "mods/compiled/modpdef.cpp" @@ -156,6 +159,7 @@ add_library(NorthstarDLL SHARED target_link_libraries(NorthstarDLL PRIVATE minhook libcurl + minizip WS2_32.lib Crypt32.lib Cryptui.lib |