[4.11] Cast to FOnlineSubsystemSteam

So, I’m trying to figure out a proper way of implementing the ISteamInventory.h in a way that I can still use the OnlineSubsystem properly.

Since the steam_api is already initialized by FOnlineSubsystemSteam, how can I get access to it in order to implement other extended functionality?

Using the IOnlineSubsystem::Get(); acts as an interface for it, but you’re not able to interface_cast because FOnlineSubsystemSTeam is not recognized …

IOnlineSubsystem *sub = IOnlineSubsystem::Get()
FOnlineSubsystemSteam *steam = static_cast(sub);

steam->…

IOnlineSubsystem *sub = IOnlineSubsystem::Get();

FOnlineSubsystemSteam *steam = static_cast<FOnlineSubsystemSteam*>(sub);

steam->...