Skip to content

Commit

Permalink
update generate interface (more interface discovery)
Browse files Browse the repository at this point in the history
  • Loading branch information
Detanup01 authored Oct 6, 2024
1 parent 3a05ef6 commit 1460b87
Showing 1 changed file with 39 additions and 16 deletions.
55 changes: 39 additions & 16 deletions tools/generate_interfaces/generate_interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,58 @@
// these are defined in dll.cpp at the top like this:
// static char old_xxx[128] = ...
const static std::vector<std::string> interface_patterns = {
R"(STEAMAPPS_INTERFACE_VERSION\d+)",
R"(STEAMAPPLIST_INTERFACE_VERSION\d+)",
R"(STEAMAPPTICKET_INTERFACE_VERSION\d+)",
R"(SteamClient\d+)",

R"(STEAMCONTROLLER_INTERFACE_VERSION)",
R"(SteamController\d+)",

R"(SteamFriends\d+)",

R"(SteamGameServerStats\d+)",
R"(SteamGameCoordinator\d+)",
R"(SteamGameServer\d+)",

R"(STEAMHTMLSURFACE_INTERFACE_VERSION_\d+)",
R"(STEAMHTTP_INTERFACE_VERSION\d+)",

R"(SteamInput\d+)",
R"(STEAMINVENTORY_INTERFACE_V\d+)",

R"(SteamMatchMakingServers\d+)",
R"(SteamMatchMaking\d+)",
R"(SteamMatchGameSearch\d+)",

R"(SteamUser\d+)",
R"(SteamFriends\d+)",
R"(SteamUtils\d+)",
R"(STEAMUSERSTATS_INTERFACE_VERSION\d+)",
R"(STEAMAPPS_INTERFACE_VERSION\d+)",
R"(SteamParties\d+)",

R"(STEAMMUSIC_INTERFACE_VERSION\d+)",
R"(STEAMMUSICREMOTE_INTERFACE_VERSION\d+)",

R"(SteamNetworkingMessages\d+)",
R"(SteamNetworkingSockets\d+)",
R"(SteamNetworkingUtils\d+)",
R"(SteamNetworking\d+)",

R"(STEAMPARENTALSETTINGS_INTERFACE_VERSION\d+)",
R"(STEAMREMOTEPLAY_INTERFACE_VERSION\d+)",
R"(STEAMREMOTESTORAGE_INTERFACE_VERSION\d+)",
R"(STEAMSCREENSHOTS_INTERFACE_VERSION\d+)",
R"(STEAMHTTP_INTERFACE_VERSION\d+)",
R"(STEAMUNIFIEDMESSAGES_INTERFACE_VERSION\d+)",

R"(STEAMCONTROLLER_INTERFACE_VERSION)",
R"(SteamController\d+)",

R"(STEAMTIMELINE_INTERFACE_V\d+)",
R"(STEAMUGC_INTERFACE_VERSION\d+)",
R"(STEAMAPPLIST_INTERFACE_VERSION\d+)",
R"(STEAMMUSIC_INTERFACE_VERSION\d+)",
R"(STEAMMUSICREMOTE_INTERFACE_VERSION\d+)",
R"(STEAMHTMLSURFACE_INTERFACE_VERSION_\d+)",
R"(STEAMINVENTORY_INTERFACE_V\d+)",

R"(SteamUser\d+)",
R"(STEAMUSERSTATS_INTERFACE_VERSION\d+)",

R"(SteamUtils\d+)",

R"(STEAMVIDEO_INTERFACE_V\d+)",
R"(SteamMasterServerUpdater\d+)",

R"(STEAMUNIFIEDMESSAGES_INTERFACE_VERSION\d+)",

R"(SteamMasterServerUpdater\d+)",
};

unsigned int findinterface(
Expand Down Expand Up @@ -97,6 +119,7 @@ int main(int argc, char *argv[])
for (const auto &patt : interface_patterns)
{
total_matches += findinterface(out_file, steam_api_contents, patt);
std::cout << "Searching for '" + patt + "'..." << std::endl;
}

out_file.close();
Expand Down

0 comments on commit 1460b87

Please sign in to comment.