mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-26 14:32:54 -05:00
Fix steamworks downloader
This commit is contained in:
@@ -7,6 +7,11 @@ project(SmokeAPITools LANGUAGES CXX)
|
||||
add_executable(steamworks_downloader src/steamworks_downloader.cpp)
|
||||
target_link_libraries(steamworks_downloader PRIVATE KoalaBoxTools)
|
||||
|
||||
# TODO: Deduplicate this from Koalabox/CMakeLists.txt
|
||||
## https://github.com/serge1/ELFIO
|
||||
CPMAddPackage("gh:serge1/ELFIO#Release_3.12")
|
||||
target_link_libraries(steamworks_downloader PUBLIC elfio)
|
||||
|
||||
### Steamworks Parser executable
|
||||
|
||||
add_executable(steamworks_parser src/steamworks_parser.cpp)
|
||||
|
||||
@@ -93,6 +93,7 @@ namespace {
|
||||
kb::tools::zip::extract_files(
|
||||
zip_file_path,
|
||||
[&](const std::string& name, const bool) {
|
||||
// C/C++ headers
|
||||
if(name.starts_with("sdk/public/steam/") && name.ends_with(".h")) {
|
||||
return unzip_dir / "headers/steam" / fs::path(name).filename();
|
||||
}
|
||||
@@ -108,7 +109,8 @@ namespace {
|
||||
|
||||
// Linux binaries
|
||||
if(
|
||||
name.starts_with("sdk/redistributable_bin/linux") &&
|
||||
name.starts_with("sdk/redistributable_bin/linux32") &&
|
||||
!name.contains("linuxarm") &&
|
||||
name.ends_with("libsteam_api.so")
|
||||
) {
|
||||
return unzip_dir / "binaries" / name.substr(name.find("linux"));
|
||||
|
||||
Reference in New Issue
Block a user