timeline v1 fix

This commit is contained in:
Detanup01 2024-11-21 17:18:21 +01:00 committed by GitHub
parent 94a7e62ecb
commit 658bd82689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,9 +37,10 @@ ISteamTimeline *Steam_Client::GetISteamTimeline( HSteamUser hSteamUser, HSteamPi
PRINT_DEBUG("%s", pchVersion); PRINT_DEBUG("%s", pchVersion);
if (!steam_pipes.count(hSteamPipe) || !hSteamUser) return nullptr; if (!steam_pipes.count(hSteamPipe) || !hSteamUser) return nullptr;
if (strcmp(pchVersion, "STEAMTIMELINE_INTERFACE_VERSION001") == 0) { if (strcmp(pchVersion, "STEAMTIMELINE_INTERFACE_V001") == 0) {
return reinterpret_cast<ISteamTimeline *>(static_cast<ISteamTimeline001 *>(steam_timeline)); return reinterpret_cast<ISteamTimeline *>(static_cast<ISteamTimeline001 *>(steam_timeline));
} }
// Todo: Add non existing but reversed v2-v3
else if (strcmp(pchVersion, STEAMTIMELINE_INTERFACE_VERSION) == 0) { else if (strcmp(pchVersion, STEAMTIMELINE_INTERFACE_VERSION) == 0) {
return reinterpret_cast<ISteamTimeline *>(static_cast<ISteamTimeline *>(steam_timeline)); return reinterpret_cast<ISteamTimeline *>(static_cast<ISteamTimeline *>(steam_timeline));
} }