return null instead of actual interface get

This commit is contained in:
Detanup01
2025-11-23 18:38:04 +01:00
committed by GitHub
parent fe61c8ab08
commit e25c51581a

View File

@@ -325,11 +325,12 @@ static void *create_client_interface(const char *ver)
return static_cast<ISteamClient *>(client_ptr);
}
client_ptr->report_missing_impl_and_exit(ver, EMU_FUNC_NAME);
// report the missing interface if it is a client
client_ptr->report_missing_impl(ver, EMU_FUNC_NAME);
}
// Assuming old games (1110100) and old version of Facepunch.Steamworks call this first then it will throw because this is not here.
return get_steam_client()->GetISteamGenericInterface(SteamAPI_GetHSteamUser(), SteamAPI_GetHSteamPipe(), ver);
// Original steam returns 0 here.
return nullptr;
}
STEAMAPI_API void * S_CALLTYPE SteamInternal_CreateInterface( const char *ver )