Skip to content

Commit 5aa97db

Browse files
committed
Fix steamworks downloader
1 parent e09cd7c commit 5aa97db

9 files changed

Lines changed: 15 additions & 8 deletions

.idea/SmokeAPI.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/linux_exports_generator__32_.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/linux_exports_generator__64_.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/steamworks_downloader__prompt_.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/steamworks_parser.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/sync.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/windows_exports_generator__64_.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ project(SmokeAPITools LANGUAGES CXX)
77
add_executable(steamworks_downloader src/steamworks_downloader.cpp)
88
target_link_libraries(steamworks_downloader PRIVATE KoalaBoxTools)
99

10+
# TODO: Deduplicate this from Koalabox/CMakeLists.txt
11+
## https://github.com/serge1/ELFIO
12+
CPMAddPackage("gh:serge1/ELFIO#Release_3.12")
13+
target_link_libraries(steamworks_downloader PUBLIC elfio)
14+
1015
### Steamworks Parser executable
1116

1217
add_executable(steamworks_parser src/steamworks_parser.cpp)

tools/src/steamworks_downloader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ namespace {
9393
kb::tools::zip::extract_files(
9494
zip_file_path,
9595
[&](const std::string& name, const bool) {
96+
// C/C++ headers
9697
if(name.starts_with("sdk/public/steam/") && name.ends_with(".h")) {
9798
return unzip_dir / "headers/steam" / fs::path(name).filename();
9899
}
@@ -108,7 +109,8 @@ namespace {
108109

109110
// Linux binaries
110111
if(
111-
name.starts_with("sdk/redistributable_bin/linux") &&
112+
name.starts_with("sdk/redistributable_bin/linux32") &&
113+
!name.contains("linuxarm") &&
112114
name.ends_with("libsteam_api.so")
113115
) {
114116
return unzip_dir / "binaries" / name.substr(name.find("linux"));

0 commit comments

Comments
 (0)