Fix steamworks downloader

This commit is contained in:
acidicoala
2025-12-26 19:38:24 +05:00
parent e09cd7cef2
commit 5aa97db828
9 changed files with 15 additions and 8 deletions

View File

@@ -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)

View File

@@ -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"));