From 4282a4f248a3c86d40fedb1993d0b99e3022cb42 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sun, 24 Dec 2023 22:54:15 +0200 Subject: [PATCH] deprecate the find_interface scripts, now the executable is built for Windows & Linux --- scripts/find_interfaces.ps1 | 60 ------------------------------------- scripts/find_interfaces.sh | 36 ---------------------- 2 files changed, 96 deletions(-) delete mode 100644 scripts/find_interfaces.ps1 delete mode 100755 scripts/find_interfaces.sh diff --git a/scripts/find_interfaces.ps1 b/scripts/find_interfaces.ps1 deleted file mode 100644 index 4d0c53ae..00000000 --- a/scripts/find_interfaces.ps1 +++ /dev/null @@ -1,60 +0,0 @@ -$fi = $args[0] - -if( ! $fi ) -{ - $fi = "steam_api.dll" - - if( !(Test-Path $fi) ) - { - $fi = "steam_api64.dll" - } - - if( !(Test-Path $fi) ) - { - Write-Output "Failed to find steam_api or steam_api64" - Return 1 - } -} -else -{ - if( !(Test-Path $fi) ) - { - Write-Output "Failed to find $fi" - Return 1 - } -} - -function findinterface - -($api) -{ - $str = Select-String "$api[0-9][0-9][0-9]" $fi - if( $str -match "$api[0-9]{3}" ) - { - Write-Output "$($matches[0])" - } -} - -findinterface SteamClient | Out-File -Encoding ASCII -FilePath steam_interfaces.txt -findinterface SteamGameServer | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface SteamGameServerStats | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface SteamUser | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface SteamFriends | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface SteamUtils | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface SteamMatchMaking | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface SteamMatchMakingServers | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMUSERSTATS_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMAPPS_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface SteamNetworking | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMREMOTESTORAGE_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMSCREENSHOTS_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMHTTP_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMUNIFIEDMESSAGES_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMCONTROLLER_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMUGC_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMAPPLIST_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMMUSIC_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMMUSICREMOTE_INTERFACE_VERSION | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMHTMLSURFACE_INTERFACE_VERSION_ | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface STEAMINVENTORY_INTERFACE_V | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt -findinterface SteamController | Out-File -Encoding ASCII -Append -FilePath steam_interfaces.txt \ No newline at end of file diff --git a/scripts/find_interfaces.sh b/scripts/find_interfaces.sh deleted file mode 100755 index 25311392..00000000 --- a/scripts/find_interfaces.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -#usage: sh find_interfaces.sh "path to original steam api .dll or .so" > steam_interfaces.txt - -#created by supergoat from cs.rin.ru -#modified by Mr_Goldberg - -fi=$1 - -function findinterface { -strings "$fi" | grep -P "$1\d{3}" -} - -findinterface SteamClient -findinterface SteamGameServer -findinterface SteamGameServerStats -findinterface SteamUser -findinterface SteamFriends -findinterface SteamUtils -findinterface SteamMatchMaking -findinterface SteamMatchMakingServers -findinterface STEAMUSERSTATS_INTERFACE_VERSION -findinterface STEAMAPPS_INTERFACE_VERSION -findinterface SteamNetworking -findinterface STEAMREMOTESTORAGE_INTERFACE_VERSION -findinterface STEAMSCREENSHOTS_INTERFACE_VERSION -findinterface STEAMHTTP_INTERFACE_VERSION -findinterface STEAMUNIFIEDMESSAGES_INTERFACE_VERSION -findinterface STEAMCONTROLLER_INTERFACE_VERSION -findinterface STEAMUGC_INTERFACE_VERSION -findinterface STEAMAPPLIST_INTERFACE_VERSION -findinterface STEAMMUSIC_INTERFACE_VERSION -findinterface STEAMMUSICREMOTE_INTERFACE_VERSION -findinterface STEAMHTMLSURFACE_INTERFACE_VERSION_ -findinterface STEAMINVENTORY_INTERFACE_V -findinterface SteamController