1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-06-07 09:45:55 +02:00

add pdk interface maker in interface getter.

This commit is contained in:
Detanup01 2025-02-08 15:51:33 +01:00 committed by GitHub
parent 8ca74a6c6c
commit 3024ec7b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -317,6 +317,11 @@ ISteamMatchmakingServers *Steam_Client::GetISteamMatchmakingServers( HSteamUser
report_missing_impl_and_exit(pchVersion, EMU_FUNC_NAME); report_missing_impl_and_exit(pchVersion, EMU_FUNC_NAME);
} }
#ifdef EMU_EXPERIMENTAL_BUILD
#include "../pdk/pdk.h"
#endif
// returns the a generic interface // returns the a generic interface
void *Steam_Client::GetISteamGenericInterface( HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char *pchVersion ) void *Steam_Client::GetISteamGenericInterface( HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char *pchVersion )
{ {
@ -335,6 +340,17 @@ void *Steam_Client::GetISteamGenericInterface( HSteamUser hSteamUser, HSteamPipe
} }
} }
// !! PDK !!
#ifdef EMU_EXPERIMENTAL_BUILD
void* pdk_interface = PDK::MakeInterface(hSteamUser, hSteamPipe, pchVersion);
if (pdk_interface != NULL)
{
return pdk_interface;
}
#endif
// !! PDK !!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// NOTE: you must try to read the one with the most characters first // NOTE: you must try to read the one with the most characters first
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!